Re: Restart of embedded broker causes BrokerStoppedException

2008-09-30 Thread taf
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: > > H

Re: Restart of embedded broker causes BrokerStoppedException

2008-09-29 Thread taf
ant to post your code so we can take a peek. >> Stop is async, so it could be that the broker is not fully stopped. >> >> One thing that that help is if you add a call to waitUntilStopped(). >> >> while(...) { >> broker.start(); >> broker.stop(0; >> brok

Re: Restart of embedded broker causes BrokerStoppedException

2008-08-28 Thread taf
o start() remove any ErrorBroker filters being placed there when stopping it? - Torgeir 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 calli

Restart of embedded broker causes BrokerStoppedException

2008-08-28 Thread taf
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