IBM Support

An MQ Binding connection error occurs after inactivity with WebSphere Enterprise Service Bus

Troubleshooting


Problem

After a long period of inactivity, such as overnight, the first attempt of the bindings to connect to MQ results in the following error: MQJMS1107: A problem with the connection has occurred.

Symptom

The first message sent by the bindings to MQ after a period of inactivity results in the following error:

MQJMS1107: A problem with the connection has occurred.

J2CA0056I: The Connection Manager received a fatal connection error from the Resource Adapter for resource

JMS$ModuleName.MQ_Import_Module_MQIMPORT_CF$JMSManagedConnection@1.

The exception is: javax.jms.JMSException: MQJMS2008: failed to open MQ queue 'QUEUENAME'.

Subsequent messages work correctly.

Cause

The cause of this issue is a stale connection.

Resolving The Problem

To resolve this issue, complete the following steps in the administrative console:

  1. Navigate to Resources > JMS > Connection Factories > connection_ factory_name.


    See Pic1.JPG at the bottom of this document for a visual representation of this administrative console panel.

  2. On the right side of the panel, click Connection pool.


    See Pic2.JPG at the bottom of this document for a visual representation of this administrative console panel.

  3. Specify 0 in the Minimum connections field.

  4. Specify a value in the Unused timeout field to a value that is less than the values for the idle timeout or the network timeout.


This action causes the system to purge the unused connections and create a new connection for the first request after the long delay instead of it trying to use a stale connection.

Pic1.JPGPic2.JPG

[{"Product":{"code":"SS7J6S","label":"WebSphere Enterprise Service Bus"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Bindings","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"7.5;7.0;6.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21501969