activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ffrenchm <>
Subject ActiveMQ native API problem : BrokerService.stop & BrokerService.start(true)
Date Tue, 12 May 2009 16:06:17 GMT


I'm looking to the ActiveMQ restart methodology... Currently I saw some
JUnit tests in which restart are done but thanks new BrokerService
instantiation. My aim is to restart the broker with the same instantiation.
IE :

queuer = new BrokerService();

With the bellowed code I've this exception :

4064 [main] ERROR  - Failed to
start ActiveMQ JMS Message Broker. Reason: Broker has been stopped:$3@9b42e6

I would like to understand why I can't restart a BrokerService with the same
instantiation ?

Anyway I try another code :
queuer = new BrokerService();

And then I've this exception : 

2562 [main] ERROR  - Failed to get
destinations Store has been closed.
	at org.apache.activemq.kaha.impl.KahaStore.initialize(

Would like to know if it's a recommendation to follow to instanciate a new
BrokerService before each restart or if my aim should work ?

Thanks for all

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message