SKAe

Configure JMS Bridge between Weblogic 10 to Active MQ 5

Step by Step approach :

1.Create a File Store/ JDBC Store

2. Create A JMS Server using that File Store

3. Create A JMS Module.

4.  Make two queues  inside the JMS Module. (One for request & another for response).

5.  Similarly at  the ActiveMQ end create two queues .(One for request & another for response).

For easy my own understanding I have mapped activeMQ.req.Queue  of ActiveMQ to activeMQ.req.Queue of Weblogic AND activeMQ.res.Queue  of ActiveMQ to activeMQ.res.Queue of Weblogic

6. Create Source (Weblogic as source) & Target(Active MQas target)  Destination inside JMS Bridge Destination. And create the Bridge between source & Target. Keep the Quality Of Service : Exactly-Once and QoS Degradation Allowed check-box ticked.

      Source Destination Properties:

 

AdapterJNDIName=eis.jms.WLSConnectionFactoryJNDINoTX

  Classpath=

  ConnectionURL = t3://localhost:7001

  DestinationType = Queue

  DestinationJNDIName = activeMQ.req.Queue

  InitialContextFactory = weblogic.jndi.WLInitialContextFactory

  ConnectionFactoryJNDIName = javax.jms.QueueConnectionFactory

     

Target Destination Properties :

 

AdapterJNDIName=eis.jms.WLSConnectionFactoryJNDINoTX

  Classpath=

  ConnectionURL = tcp://localhost:61616

  DestinationType = Queue

  DestinationJNDIName = activeMQ.req.Queue

  InitialContextFactory = org.apache.activemq.jndi.ActiveMQInitialContextFactory

  ConnectionFactoryJNDIName = QueueConnectionFactory

 

 7. Similarly create  Source (Active MQ as sourc) & Target (Destination inside JMS Bridge Destination. And create the Bridge between source & Target. Keep the Quality Of Service : Exactly-Once and QoS Degradation Allowed check-box ticked.

      Source Destination Properties:

 

AdapterJNDIName=eis.jms.WLSConnectionFactoryJNDINoTX

  Classpath=

  ConnectionURL = tcp://localhost:61616

  DestinationType = Queue

  DestinationJNDIName = activeMQ.res.Queue

  InitialContextFactory = org.apache.activemq.jndi.ActiveMQInitialContextFactory

  ConnectionFactoryJNDIName = QueueConnectionFactory

     

Target Destination Properties :

 

AdapterJNDIName=eis.jms.WLSConnectionFactoryJNDINoTX

  Classpath=

  ConnectionURL = t3://localhost:7001

  DestinationType = Queue

  DestinationJNDIName = activeMQ.res.Queue

  InitialContextFactory = weblogic.jndi.WLInitialContextFactory

  ConnectionFactoryJNDIName = javax.jms.QueueConnectionFactory 

 

8.  Most Important Part : Create jndi.properties file with below two properties. Create a jar jndi.jar of that property file.  There are multiple ways of creating jar file. I prefer Eclipse  always (By exporting the file as jar).

Below 2 lines are to be content of the jndi.properties file : 

queue.activeMQ.req.Queue = activeMQ.req.Queue

queue.activeMQ.res.Queue = activeMQ.res.Queue

 

The format should be of the below format

queue.[jndiName] = [physicalName] 

 

The dislpay name/physical name at ActiveMQ end is not the JNDI name. So you have make JNDI entry of it in the jndi.properties file and keep it in CLASSPATH.

 

9. Shutdown weblogic & ActiveMQ servers. Place the jndi.jar  & activemq-all-5.x.x.jar in the CLASSPATH of Weblogic domian and start both Weblogic & ActiveMQ.

 

======================

You can refer step-by-step with screen shots over here :

 

http://skaetech.webs.com/WeblogicToActiveMQ.pdf

 

 

 

 

 

 

 

 

Upcoming :

upcoming