activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DominicTulley <>
Subject Tomcat doesn't shutdown when amq client used within webapp
Date Wed, 23 Apr 2008 13:26:40 GMT

When we shut down our tomcat server the java process does not terminate and
it turns out that the culprit is a couple of threads belonging to the amq
client library.
The threads are "InactivityMonitor WriteCheck" and "InactivityMonitor

Having had a look at it there seem to be two possibilities.  Either there is
some client shutdown method we need to call which will ultimately call
InactivityMonitor.stop(), or the two threads should be daemon threads so
that they just evaporate.

I put in a change to make them daemon threads (trivial change) and tomcat
then shuts down correctly.  So, my question is, do we need this change in
AMQ or is there some shutdown call I should be making into the libraries?  I
am (as far as I can tell!) already closing all the connections we have open.


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message