Integrate IBM MQ with WebSphere Commerce
WebSphere Commerce provides a listener for IBM MQ for inbound requests, and an adapter for IBM MQ for outbound requests, to integrate back-end, and external systems with WebSphere Commerce. We can set up the connection between WebSphere Commerce and IBM MQ in one of two connection modes:
- Bindings mode
- WebSphere Commerce is installed on the same machine as IBM MQ and it connects to IBM MQ through IBM MQ classes for Java using the Java Messaging Server (JMS) API. Since communication is through inter-process bindings connection rather than through TCP/IP connection, bindings mode might provide better performance than client mode.
- Client mode
- WebSphere Commerce and IBM MQ connect by using TCP/IP. This mode must be used when WebSphere Commerce is installed on one machine and IBM MQ is installed on a separate machine. This mode requires that the IBM MQ client is installed on the WebSphere Commerce machine.
Important:
The listener supports IBM MQ Version 8.x and IBM MQ Version 9.x.
- IBM MQ does not support machine names that contain spaces. If you install IBM MQ on a computer with a machine name that contains spaces, we cannot create any queue managers.
Before starting
- Install IBM MQ Version 8.x or IBM MQ Version 9.x,
- For instructions on how to install IBM MQ Version 8.x, see the IBM MQ Version 8 documentation.
- For instructions on how to install IBM MQ Version 9.x, see the IBM MQ Version 9 documentation.
Create the JMS queue connection factory and JMS queues that map to the corresponding physical IBM MQ objects. Then, the WebSphere Commerce listener for IBM MQ can access IBM MQ entities through JMS.
Procedure
- Configure IBM MQ for use with WebSphere Commerce
WebSphere Commerce requires a set of information to be defined in IBM MQ for WebSphere Commerce to work with IBM MQ. These include a queue manager and a set of queues.- 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.- Configure WebSphere Commerce to use IBM MQ
To configure WebSphere Commerce to use IBM MQ, we must enable the transport adapter and then activate the IBM MQ transport.- Testing your IBM MQ configuration
To test your IBM MQ configuration, insert the following message in the hostname.inbounds message queue.