Re: ActiveMQ native API problem : BrokerService.stop BrokerService.start(true)

2009-05-28 Thread ffrenchm
Thanks for your answer Ruben... Anyway I think that the start(force) method shouldn't raise me the following exception : 2562 [main] ERROR org.apache.activemq.store.kahadaptor.KahaPersistenceAdapter - Failed to get destinations java.io.IOException: Store has been closed. at

Re: ActiveMQ native API problem : BrokerService.stop BrokerService.start(true)

2009-05-28 Thread Dejan Bosanac
Hi, have you used waitUntilStarted() and waitUntilStopped() methods. Take a look at testForceBrokerRestart() test here http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/xbean/ConnectorXBeanConfigTest.java?revision=773569 it does what you are trying to

Re: ActiveMQ native API problem : BrokerService.stop BrokerService.start(true)

2009-05-12 Thread Ruben de Gooijer
Hi, I experienced the same problem, http://mail-archives.apache.org/mod_mbox/activemq-users/200905.mbox/%3c36e91d9d0905110857gf224b1dx3abdfdb2ce256...@mail.gmail.com%3e The solution can be found here: http://cwiki.apache.org/confluence/display/ACTIVEMQ/How+do+I+restart+embedded+broker Regards,