You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by sk123 <sk...@savi.com> on 2008/08/09 00:00:40 UTC
ActiveMQ
Hi
Is there a way to know if the broker is shutting down?
I have an embedded broker and looks like the application is trying to
publish events after the broker starts to shutdown. I am using ActiveMQ 5.1.
org.apache.activemq.ConnectionFailedException: The JMS connection has
failed: Peer (vm://localhost#1) disposed.
at
org.apache.activemq.ActiveMQConnection.checkClosedOrFailed(ActiveMQConnection.java:1260)
at
org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:294)
TIA
S
--
View this message in context: http://www.nabble.com/ActiveMQ-tp18899651p18899651.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ActiveMQ
Posted by James Strachan <ja...@gmail.com>.
2008/8/8 sk123 <sk...@savi.com>:
>
> Hi
>
> Is there a way to know if the broker is shutting down?
Use Spring to ensure things shut down in dependency order; or use
BrokerService.isStarted()
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com