Detecting JMS Router Shutdown On Client Side
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ASHOK_Chawla
Posted On:   Friday, October 15, 2004 11:01 PM

We have few clients connected to JMS Router.


When JMS Router goes down client needs to go in offline mode. Is there any way we can detect JMS router shutdwon client side ?


I have seen swiftmq explorer can detect JMS Router shutdown and pop up dialog "End of stream".



Regards


Ashok Chawla

Re: Detecting JMS Router Shutdown On Client Side

Posted By:   Karl_Cassaigne  
Posted On:   Saturday, October 16, 2004 04:37 AM

You can do it simply by implementing the javax.jms.ExceptionListener interface and the use the setExceptionListener() method of the connection object.


Then, if the JMS router goes down, the onException() method will be called.
This is very reliable !
About | Sitemap | Contact