Configuring JMS nodes to communicate with WebSphere Application Server service integration bus
You can configure a stand-alone JMS client and JMS nodes to communicate with service integration bus (SIBus) in WebSphere® Application Server Version 6 and Version 7.
About this task
Procedure
- Complete the following steps in WebSphere Application Server. For more information, see
the WebSphere Application Server documentation.
- Create a messaging bus.
- Add a bus member.
- Restart the WebSphere Application Server server.
- Create a queue destination on the bus.
- Create a JMS queue on the default messaging provider.
- Create a Queue Connection Factory (QCF) on the default
messaging provider. Ensure that the messaging provider URL is specified in the QCF definition, particularly if the JMS client and messaging bus are on different computers. The provider endpoint URL must have the following format:
where 7276 is the default SIB endpoint address. Do not use 127.0.0.1 or localhost for the bus member host name.bus_member_host_name:7276:BootstrapBasicMessaging
- Test the WebSphere Application Server configuration
by using a stand-alone JMS client and completing the following steps.
- Put the following two JAR files in your class path: com.ibm.ws.sib.client.thin.jms_7.0.0.jar and com.ibm.ws.ejb.thinclient_7.0.0.jar.
Copy these JAR files from the WebSphere Application Server Version 7 installation directory under the runtimes subdirectory. If you are using a non-IBM® JRE, you also need the com.ibm.ws.orb_7.0.0.jar file.
- Ensure that the provider URL is set to iiop://WAS_server_host_name:boot_strap_port.
- Ensure that you specify the correct boot strap port.
- Ensure that the Queue Connection Factory and JMS Queue properties are set to the values defined in the WebSphere Application Server configuration.
- Compile the JMS client code.
- Run the JMS client with the following IBM ORB debug parameters turned on.
java -Dcom.ibm.CORBA.Debug=true -Dcom.ibm.CORBA.CommTrace=true -Dcom.ibm.CORBA.D ebug.Output=client.logJMS_Client_Class
This command produces CORBA debug output in the client.log file in the same directory.
- Put the following two JAR files in your class path: com.ibm.ws.sib.client.thin.jms_7.0.0.jar and com.ibm.ws.ejb.thinclient_7.0.0.jar.
- Complete the following steps in IBM App Connect Enterprise.
- Stop the integration server.
- Create a directory (for example, c:\WebSphere_WAS_Client)
and copy the following two JAR files from WebSphere Application Server Version 7 Thin Client for
JMS.
- com.ibm.ws.sib.client.thin.jms_7.0.0.jar
- com.ibm.ws.ejb.thinclient_7.0.0.jar
- Configure the JMS service in IBM App Connect Enterprise by using the mqsichangeproperties command.
The JMS provider WebSphere_WAS_Client exists; therefore you can change
the client JAR file path for that provider.
mqsichangeproperties integrationNodeName -c JMSProviders -o WebSphere_WAS_Client -n jarsURL -v WAS_thin_client_JAR_file_path
- Optional: Verify that your JMS service is configured correctly.
- Configure the JMSInput node
as shown in the following example. For more information about these properties, see JMSInput node.
- Specify the name of the JMS provider; for example, Client for WebSphere Application Server.
- Specify the initial context factory; for example, com.ibm.websphere.naming.WsnInitialContextFactory.
- Specify the location of the JNDI bindings in the format iiop://WAS_server_host_name:WAS_server_boot_strap_port.
- Set the connection factory name to QCF.
- Ensure that the JMS connection has been established before the message flow starts by using the Windows Event Viewer.