users@glassfish.java.net

Re: Detecting A Broken JMS Connection/Session/Destination Link and Reconnecting

From: Ramesh <Ramesh.Parthasarathy_at_Sun.COM>
Date: Tue, 25 Mar 2008 20:53:08 +0530

Does a jms exception listener solve your problem ?
http://docs.sun.com/app/docs/doc/819-7757/6n9mar6fa?a=view

Thanks
-Ramesh

rdblaha1 wrote:
> I was pulled to other work for a while so I did not keep on this, but now I
> need to ask the question again. What are feasible methods for specifically
> detecting whether my JMS Connection is no longer valid, my Session is no
> longer valid, or my Destination is no longer valid.
>
> I have learned by experience that if I set up Queue1 with the property
> name=queue and Queue2 with the property name=queue with the AppClient on the
> client side with NO connection to Queue1 and Queue2 on the appserver that my
> consumer on my appclient will read from the output of my producer on my
> appclient. Also, my producer was satisfied (acknowledge returned within the
> 'send.producer' command) that the message had reached the actual destination
> on the appserver.
>
> Because of this I am looking for these specific tools rather than simply
> detecting if the network is still connected from appclient to appserver.
>
> Please help me. Thank you.
>
>