You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by pminearo <pe...@skycreek.com> on 2014/05/24 00:27:39 UTC
ActiveMQ 5.9, not shutting down cleanly
I am having a problem with an embedded Broker not shutting down cleanly. We
have a standalone application which creates Daemon Threads in these threads
is a Spring Context which is used to create the embedded Broker. When we
shutdown our application, It looks like the Broker shuts down, but the JMS
Bridge stays active?Below is our Spring configs, and the Thread Dump of the
application after it has been told to shutdown. Anyone have any ideas why
ActiveMQ would not shutdown cleanly?
*SPRING CONFIG:*
*LOG OUTPUT:*
*THREAD DUMP*
--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-9-not-shutting-down-cleanly-tp4681371.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ActiveMQ 5.9, not shutting down cleanly
Posted by pminearo <pe...@skycreek.com>.
Looks like I spoke too soon. Back to the original question.....
--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-9-not-shutting-down-cleanly-tp4681371p4681459.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ActiveMQ 5.9, not shutting down cleanly
Posted by pminearo <pe...@skycreek.com>.
I have been doing some more digging around, and noticed this:
Assuming creates a org.apache.activemq.network.jms.JmsQueueConnector, which
is a child class of org.apache.activemq.network.jms.SimpleJmsQueueConnector,
which is a child class of org.apache.activemq.network.jms.JmsConnector,
which implements org.apache.activemq.Service. Service has 2 methods
listed: start() and stop(). I am also assuming when you shutdown a Embedded
Broker, or a standalone instance of ActiveMQ, the stop() method is called
when shutdown occurrs, correct?
The stop() method on JmsQueueConnector tells each of it's
DestinatinoBridges, to stop().
And All the DestinationBridge does is set started to false.
I am not seeing any code that tells the Connection to close(). Is this done
somewhere else? Not sure how that would happen since the Connections are on
JmsQueueConnector.
There is the matter of the ThreadPoolUtils.shutdown() method. Is this where
the Connections are supposed to be closed? Again, I see nothing that tells
the Connection to close?
How do JMS Bridge Connections get closed in an Embedded Broker?
Is this one of the reasons why the JMS Bridge Page says we should look at
using Camel First?
Should there NOT be a JMS Bridge Connection inside an Embedded Broker?
--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-9-not-shutting-down-cleanly-tp4681371p4681456.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.