IBM JMS Connection

I am currently working in C # and I need to check the status of the connected JMS connection (regardless of whether it is connected / disconnected). I am sure that I can connect and disconnect successfully ... I just need to display the connection status in my interface.

Are there any properties of a JMS connection that indicate the status of the connection? Or is there any other method that I can use to check the status of the connection?

Thank you for your help.:)


I am currently using ExceptionListener to listen for any exceptions, and the flag will be set to false when any exception is thrown. And when I connect, I will set the flag to true, vice versa, when I disconnect, I will set the flag to false.

This flag will be used by my user interface to determine if the connection is connected or not.

However, I thought that if there is any IBM connection property / methods that can be used to display the connection status as its best solution. For SonicMQ theres.getConnectedState (), which shows whether the connection is active or inactive. I was wondering if IBM has something similar to SonicMQ?

+3
source share
1 answer

Connection.setExceptionListener() , . , onException().

FAILIFQUIESCE , , QMgr .

v7 WMQ . , , .

, API . , , , , API. , . . " , JMS Connection? .

WMQ v7 . v7 , . v6 - 2011 , v7. v7 SupportPac MQC7. JMS client renect , , API . , factory.

+1

Source: https://habr.com/ru/post/1756487/


All Articles