You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Hervé BARRAULT <he...@gmail.com> on 2011/10/07 17:28:48 UTC

VM shutdown on broker failure.

Hi,
I am using activemq 5.4.

I use a broker with a JDBC persistence and i have noticed that the broker
vanish when i loose the JDBC connection (for example when i restart the JDBC
server).
But as i am using an embedded broker in my application (based on
servicemix), the JVM is not closed. So my application is no more usable (no
broker) but the process is still alive.

Is there a way to shutdown automatically a JVM when the broker fails (by
configuration) ?

Thanks for answers.

Regards
Hervé

Re: VM shutdown on broker failure.

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,

checkout configurable io exception handler

http://activemq.apache.org/configurable-ioexception-handling.html

Maybe you work something out with it.

Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Fri, Oct 7, 2011 at 5:28 PM, Hervé BARRAULT <he...@gmail.com>wrote:

> Hi,
> I am using activemq 5.4.
>
> I use a broker with a JDBC persistence and i have noticed that the broker
> vanish when i loose the JDBC connection (for example when i restart the
> JDBC
> server).
> But as i am using an embedded broker in my application (based on
> servicemix), the JVM is not closed. So my application is no more usable (no
> broker) but the process is still alive.
>
> Is there a way to shutdown automatically a JVM when the broker fails (by
> configuration) ?
>
> Thanks for answers.
>
> Regards
> Hervé
>