Vous êtes sur la page 1sur 14

Third party JMS Provider Queue Configuration Steps

1. Create Message Listener Port..............................................................................................................2


2. Create J2C Authentication Alias for JMS Provider................................................................................3
3. Create JMS Provider............................................................................................................................5
4. Create JMS Provider Custom properties..............................................................................................7
5. Create Queue Connection Factory.......................................................................................................9
6. Create Queues...................................................................................................................................11
7. Last Participant Support (LPS) for JMS local transaction....................................................................13

NOTE: After changing anything to JMS configuration, Server needs to be restarted.


1. Create Message Listener Port
a. After login to WAS Admin Console, click on WebSphere application servers and then
application servers ‘server1’ as shown in below screen. Click on Message listener service
link under Messaging subsection.

b. Click on Listener Ports link as shown below.

c. Click on new button as shown below.

d. Put the details as shown in below screen.


Name: GLQueueMessageListener
Initial Sate: Stopped
Connection Factory JNDI name: jms/GLQueueConnectionFactory
Destination JNDI name: jms/GLResponseQueue

2. Create J2C Authentication Alias for JMS Provider.

a. Login to Admin Console, click on ‘Global security’ link under Security and Go to ‘J2C
authentication data’ screen as shown in below screenshot.

b. You should see below screen, click on new button.


c. Fill the provided details as shown in below screen and save it.

UserID: amq-ist
Password: amq-ist-password

d. After saving the above details, it will show up the newly created J2C Auth Alias as shown
below.
3. Create JMS Provider
a. Create JMS Provider as Generic Message Provider (for ActiveMQ), click on ‘New’ button as
shown below.

b. Fill the provided details as shown in below screenshot and save it.

External Initial Context Factory: org.apache.activemq.jndi.ActiveMQWASInitialContextFactory


External provider URL: tcp://10.8.205.94:61616
Class path entry:
${WAS_LIBS_DIR}/ActiveMQ/activemq-client-5.10.0.jar
${WAS_LIBS_DIR}/ActiveMQ/hawtbuf-1.10.jar
${WAS_LIBS_DIR}/ActiveMQ/slf4j-api-1.7.5.jar

Jars can be downloaded from FTP: 54.236.248.207 and directory: /ActiveMQ_Jars


Put it under /IBM/WebSphere/AppServer/lib/ActiveMQ (create ActiveMQ directory)

c. Once you save the above details, The JMS Provider list will show up the newly created one as
shown in below screen.

4. Create JMS Provider Custom properties.


a. Open the newly created JMS Provider and Click on ‘Custom Property’ link to create required
properties as shown in below screenshot.
b. Click on ‘New’ button to add custom properties for JMS Provider.

c. Fill the provided details and save it as shown in below screenshot.

Name: java.naming.connectionFactoryNames
Value: jms/GLQueueConnectionFactory
d. Fill the provided details and save it as shown in below screenshot.

Name: java.naming.queue.jms.GLRequestQueue
Value: Consumer.BankMate.AHP.GLPosting.Queue

e. Fill the provided details and save it as shown in below screenshot.

Name: java.naming.queue.jms.GLResponseQueue
Value: Listener.AHP.BankMate.GLResponse.Queue
f. Once you save all the custom properties under JMS Provider, It will populate all the property
under custom properties list.

5. Create Queue Connection Factory


a. Click on ‘Queue connection factories’ and click on ‘New’ button as shown in below
screenshot.
b. Fill the provided details as shown in below screenshot and save it.

Name: GL Queue Connection Factory


JNDI name: jms/GLQueueConnectionFactory
External JNDI name: jms/GLQueueConnectionFactory
Component-managed authentication alias: GLQueueAuthAlias
c. Once you save the above details, the screen will show up newly created Queue Connection
Factory as shown below.

6. Create Queues
a. Click on ‘Queue’ link under JMS and click
b. Fill the provided Queue details as shown in below screenshot and save it.

Name: GLRequestQueue
JNDI name: jms/GLRequestQueue
External JNDI Name: jms/GLRequestQueue
c. Fill the provided Queue details as shown in below screenshot and save it.

Name: GLResponseQueue
JNDI name: jms/GLResponseQueue
External JNDI Name: jms/GLResponseQueue

d. Once you save the above details, the Queue screen will show up the all created queues.

7. Last Participant Support (LPS) for JMS local transaction


a. Go to installed application (ahp-ear in this case) and click on Last Participant Support
Extension link as shown in below screen.
b. You should see this below screen and click on check box and save the screen.

Vous aimerez peut-être aussi