public final class IBMClientCommons extends Object
| Constructor and Description |
|---|
IBMClientCommons() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isConnectionBrokenException(Throwable throwable)
We are checking for IBM-MQ connection broken exception and the reason code for the same is 2009 because the customer
encountered a condition where it was not reconnecting after getting 2009.
|
public static boolean isConnectionBrokenException(Throwable throwable)
Haven't found a specific source to verify the format of the message contained in MQException or JmqiException. But after checking a lot of logs online the following format seems to be prevalent.
MQException - "com.ibm.mq.MQException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2009' ('MQRC_CONNECTION_BROKEN')."
JmqiException - "com.ibm.mq.jmqi.JmqiException: CC=2;RC=2009;AMQ9208: Error on receive from host 'hostname'."
throwable - Copyright © 2025. All rights reserved.