activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Shutdown hook in ActiveMQ
Date Tue, 09 Oct 2007 12:11:29 GMT
On 09/10/2007, Bruce Snyder <> wrote:
> On 10/9/07, James Strachan <> wrote:
> > You could always just disable the use of the shutdown handler on the
> > BrokerServer
> >
> >
> > or  <broker> element
> >
> I don't think this is a good idea as it means that nothing gets
> cleanly unregistered and stopped.

Rob was talking about debugging; so I presumed the thread was about
using test cases and so forth; in which case, there's no need to use
the shutdown handler as the JUnit test case can stop the broker (and
typically JUnit terminates the JVM anyway on exit).

FWIW running the shutdown handler is gonna close things down cleaner
for sure - but given ActiveMQ has to handle boxes just dying at
runtime, things should still work without the shutdown handler (i.e.
no message loss or corruption of the database etc).


Open Source SOA

View raw message