activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sitsky <s...@nuix.com>
Subject Re: receive() does not throw exception when activemq.bat is terminated
Date Tue, 05 Aug 2008 03:48:48 GMT
> I'm quite a new user to ActiveMq and it's queuing system but as I have
> understood it the: receive(5000) or receive() (I've also tried
> receiveNoWait()) should both throw an exception if they are run when the
> activemq.bat has been terminated. 

Have a look at the Connection.setExceptionListener(ExceptionListener) 
method.  This is the right way for your application to be notified if 
the connection to the JMS provider has been lost.

-- 
Cheers,
David

Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia    Ph: +61 2 9280 0699
Web: http://www.nuix.com                            Fax: +61 2 9212 6902

Mime
View raw message