Troubleshoot and support > Messaging
Troubleshoot: Configuring WebSphere Commerce with WebSphere MQ
Common problems encountered when using WebSphere MQ and their solutions are listed on this page.
Problem
If a fatal error is encountered by the Listener for WebSphere MQ, the listeners will automatically restart after a set period.
To change the time to reconnect value:
- Open the Configuration Manager
- Navigate to Commerce > Instance List > instance > Transports > Inbound > Listener for WebSphere MQ.
- In the Time to Reconnect field to the time type the time in seconds that the Listener for WebSphere MQ will take to reconnect.
- Restart WebSphere Commerce.
Problem
After setting up WebSphere Commerce Developer to work with WebSphere MQ, the following (or similar) exception is observed during server startup:
[2/21/06 9:55:03:848 CST] 52989e1b SystemErr R java.lang.UnsatisfiedLinkError:
C:\WebSphere\WebSphere MQ\Java\lib\mqjbnd05.dll: Can't find dependent libraries
The cause is the MQ_INSTALL_ROOT variable by default is pointing to the WebSphere MQ client installation instead of the server installation.
- Open the WebSphere Application Server Administration Console
- Under Environment > Manage WebSphere Variables click on MQ_INSTALL_ROOT.
- In the value field specify the correct path to the WebSphere MQ server installation directory
- Click OK to save the changes.
- Restart WebSphere Commerce Developer.
Problem
When sending a message to a backend system with WepSphere MQ, unexpected characters show up in the front of the XML message. For example, from the WebSphere Commerce logs:
com.ibm.commerce.messaging.outboundservice.Messaging.sendReceiveImmediate() Message content is:
The default value is "JMS" when a JNDI entry is defined for an outbound queue. However, if the targetClient field is not changed to "MQ", unexpected characters will appear at the beginning of the messages sent by WebSphere Commerce on these 2 queues.
- Open the WebSphere Application Server Administrative Console, for example: http://host:9090/admin
- Login with the User ID. Note: The User ID does not require a password, and does not need to be a User ID of a user in the local user registry. It is only used to track user-specific changes to configuration data. Security is not enabled.
- Change the queue destination defined for the outbound queues named JMSOutboundQueue and JMSErrorQueue. Enter "MQ" for the targetClient field instead of "JMS".
Problem
WebSphere MQ is not receiving any messages from WebSphere Commerce after a WebSphere Commerce Server restart.
If there are many messages in the MSGSTORE table that are waiting to be sent, this can hold up other messages from being sent. For example, if you have a connection problem to your SMTP server, this may cause email messages to build up and prevent other messages, such as WebSphere MQ messages from being sent. Correcting the problem with the SMTP server will resolve the issue and the MQ messages will be sent.
Related concepts
Inbound messages over WebSphere MQ