We try to connect using CCDT file (method ConnPromise) that is created this way:
mkdir -p /opt/ccdt
MQCHLLIB=/opt/ccdt runmqsc -n
DEFINE CHANNEL('CHANNEL_NAME_HERE') CHLTYPE(CLNTCONN) CONNAME('IP_ADDRESS_HERE(14147)') QMNAME('QM_NAME_HERE') MAXMSGL(4194304) SHARECNV(1) SSLCIPH('TLS_AES_256_GCM_SHA384') SSLPEER('PEER_CFG_HERE')
EXIT
The connection works well until some point. Then it just breaks and client does not attempt to reconnect (as it should, because SHARECNV(1)).
We are not able to tell at which point it breaks, we just do not receive messages after some time.
Only service restart (process.exit) helps. Any advice, how can we make it reconnect automatically? Or if there a way we could check if connection is alive? Thanks in advance!
We try to connect using CCDT file (method
ConnPromise) that is created this way:The connection works well until some point. Then it just breaks and client does not attempt to reconnect (as it should, because
SHARECNV(1)).We are not able to tell at which point it breaks, we just do not receive messages after some time.
Only service restart (process.exit) helps. Any advice, how can we make it reconnect automatically? Or if there a way we could check if connection is alive? Thanks in advance!