Google
Tech-Bits: WebSphere to ActiveMQ

Sunday, April 19, 2009

WebSphere to ActiveMQ

Define generic jms provider
1. Login to WebSphere Admin Console. Go to Resources->GenericJMSProviders
2. Select the scope = specify node and the server
3. Click New
1. Name = payment server
2. description = gateway to payment server
3. Classpath
1. path-to-websphere-lib-ext-directory/activeio-core-3.0.0-incubator.jar
2. path-to-websphere-lib-ext-directory/activemq-core-4.1.1.jar
3. path-to-websphere-lib-ext-directory/activemq-jaas-4.1.1.jar
4. path-to-websphere-lib-ext-directory/activemq-web-4.1.1.jar
5. path-to-websphere-lib-ext-directory/backport-util-concurrent-2.1.jar
6. path-to-websphere-lib-ext-directory/commons-logging-1.1.1.jar
7. path-to-websphere-lib-ext-directory/geronimo-jms_1.1_spec-1.1.1.jar
4. External Initial Context Factory = org.apache.activemq.jndi.ActiveMQWASInitialContextFactory
5. External Provider URL = tcp://brokerHost:62002
4. Apply->ok->Save

Configure JMS Connection Factory for the defined provider
1. Go to Resources > Generic JMS Providers > payment server > JMS Connection Factories >
2. Click New
1. Name = order connection factory
2. Type = QUEUE
3. JNDI Name = jms/orderConnectionFactory
4. External JNDI Name = paymentServer/orderConnectionFactory
5. Container-managed Authentication Alias = as appropriate
3. Apply->ok->Save

Configure JMS Destinations for the defined provider
1. order creation
2. Go to Resources > Generic JMS Providers > payment server > JMS Destinations >
3. Click New
1. Name = order connection
2. Type = QUEUE
3. JNDI Name = jms/orderConnection
4. Description = The external active mq queue where messages will be sent to.
5. External JNDI Name = dynamicQueues/order.in
4. Apply->ok->Save


Configure Custom properties for the defined provider
1. Connection Factories
2. Go to Resources > Generic JMS Providers > payment server > Custom Properties >
3. Click New
1. Name = java.naming.connectionFactoryNames
2. Value = paymentServer/orderConnectionFactory
3. Type = java.lang.String
4. Apply->ok->Save

1. Destinations java.naming.queue.order.in
2. Go to Resources > Generic JMS Providers > payment server > Custom Properties >
3. Click New
1. Name = java.naming.queue.order.in
2. Value = order.in
3. Type = java.lang.String
4. Apply->ok->Save

0 Comments:

Post a Comment

<< Home