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