RE: Re: openJMS stops consuming messages

"Tim Anderson" <[email protected]> Thu, 12 May 2005 22:11:46 +1000
Newsgroups gmane.comp.java.openjms.devel
Message-ID <000001c556eb$c6709f20$7c7bfddc@xerces>
Unfortunately no. Looking at the 0.7.6 code, if the server fails 
to contact the client it cleans up the session, but in a least
2 cases won't clean up the connection and therefore ExceptionListener
Notifications won't occur.
Using the RMI connector, the server can fail to to contact
the client under heavy load and assume that the connection has
been lost. Using the TCP connector, this won't happen.
In 0.7.7, the server cleans up all resources associated with
a client when the client disconnects, and the client also
gets notified via any registered ExceptionListener.

In your case, the only options you have as far as I can tell
are to:
. try using synchronous consumers. You will get a JMSException
  if the receive() fails.
. change to the tcp connector
. periodically close your sessions and re-register the asynchronous 
  consumers  

> -----Original Message-----
> From: openjms-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
> [mailto:openjms-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On 
> Behalf Of Wei Leng
> Sent: Monday, 9 May 2005 3:46 PM
> To: openjms-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: [openjms-developer] Re: openJMS stops consuming messages
> 
> 
> Currently I'm not able to try on using tcp connectors as I'll 
> have to edit the 
> config file to add in the tcp configuration and restart the 
> openJMS server. My 
> client will not approve this since the system is running 24x7.
> 
> Is there anyway that we can be able to detect if a subscriber 
> has been 
> deactivated? also, is there any command to activate a 
> subscriber via java code?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.
> Get your fingers limbered up and give it your best shot. 4 
> great events, 4 opportunities to win big! Highest score 
> wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. 
> Visit http://www.necitguy.com/?r=20 
> _______________________________________________
> openjms-developer mailing list openjms-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/openjms-developer
> 



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click