Configure WebSphere Application Server for use with IBM MQ
We can configure WebSphere Application Server for use with IBM MQ by determining the maximum number of ManagedConnections for the JCA-JMS connector, creating a IBM MQ messaging provider queue connection factory, creating IBM MQ messaging provider queue destinations, and configuring advanced properties for JMSQueueConnectionFactory and JMSOutboundQueue.Note: For runtime environments, we can leverage Run Engine commands to configure WebSphere Application Server for use with IBM MQ. See Run Engine commands. We can use the following Run Engine commands in The Transaction server container:
- change-mqadapter-max-connection
- create-jms-connection-factory
- create-jms-queues
The following steps explain how to configure the connection through the WebSphere Application Server Administration console.
Procedure
- Setting the MQ_INSTALL_ROOT environment variable
Set the MQ_INSTALL_ROOT environment variable value in the WebSphere Application Server Administrative Console to direct WebSphere Application Server to where IBM MQ is installed.- Enable the ActivitySession service
Enable the ActivitySession service.- Determining the maximum number of connections allowed for the Adapter for IBM MQ
To determine the maximum number of ManagedConnections for the JCA-JMS connector, we must perform these steps on the WebSphere Commerce machine.- Creating an IBM MQ messaging provider queue connection factory
To create an IBM MQ messaging provider queue connection factory, follow this procedure on the Transaction Server.- Creating IBM MQ messaging provider queue destinations
Perform these steps to create the JMS queues required for the WebSphere Commerce listener for IBM MQ.- (Optional) Defining multiple threads for serial and parallel listeners
By default, WebSphere Commerce configuration provides two inbound listeners: one serial listener and one parallel listener. To use multiple inbound queues, we must define multiple inbound listeners for IBM MQ.
Previous topic: Configure IBM MQ for use with WebSphere Commerce
Next topic: Configure WebSphere Commerce to use IBM MQ