You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Gary Tully <ga...@gmail.com> on 2008/10/03 14:53:07 UTC

Re: Restart of embedded broker causes BrokerStoppedException

It should do, provided all threads get to do their thing at shutdown.

2008/9/30 taf <to...@fikse.net>:
>
> This problem is not appearing in the latest snapshot (2008-09-29).
>
> Another issue surfaced though; when restarting the broker the journal is
> still locked. Isn't the broker.stop() suppose to unlock the journal if it's
> the only (or last) broker running?
>
>
>
>
> taf wrote:
>>
>> Hi,
>> I'm running activemq embedded and wants to be able to restart the broker
>> without terminating the host application. The broker starts fine on
>> application startup and calling stop() therafter also works fine, but when
>> trying to start it again, it results in a BrokerStoppedException.
>>
>> I've traced the call into the start method in MutableBrokerFilter where
>> the call to getNext().start() actually returns an ErrorBroker (which
>> of-course gives me a BrokerStoppedException when trying to start it).
>>
>> I would have thought that the call should be this.start(), as my broker is
>> successfully bound to this.
>> And why does getNext even return an ErrorBroker?
>>
>> Am I missing something obvious here?
>>
>> Regards,
>> - Torgeir Fikse
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Restart-of-embedded-broker-causes-BrokerStoppedException-tp19198844p19737754.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>