A little better logging to see when brokers are started and stopped.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@376042 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-02-08 20:17:12 +00:00
parent ef0127d81c
commit 43d4e983dc
1 changed files with 4 additions and 4 deletions

View File

@ -319,8 +319,8 @@ public class BrokerService implements Service {
// as its way too easy to not be completely sure if start() has been // as its way too easy to not be completely sure if start() has been
// called or not with the gazillion of different configuration mechanisms // called or not with the gazillion of different configuration mechanisms
//throw new IllegalStateException("Allready started."); throw new IllegalStateException("Allready started.");
return; //return;
} }
processHelperProperties(); processHelperProperties();
@ -408,7 +408,7 @@ public class BrokerService implements Service {
stopper.stop(getManagementContext()); stopper.stop(getManagementContext());
} }
log.info("ActiveMQ JMS Message Broker (" + getBrokerName() + ") stopped"); log.info("ActiveMQ JMS Message Broker (" + getBrokerName() + ") stopped: "+broker);
stopper.throwFirstException(); stopper.throwFirstException();
} }
@ -818,7 +818,7 @@ public class BrokerService implements Service {
broker = new MutableBrokerFilter(broker) { broker = new MutableBrokerFilter(broker) {
public void stop() throws Exception { public void stop() throws Exception {
super.stop(); super.stop();
setNext(new ErrorBroker("Broker has been stopped.") { setNext(new ErrorBroker("Broker has been stopped: "+this) {
// Just ignore additional stop actions. // Just ignore additional stop actions.
public void stop() throws Exception { public void stop() throws Exception {
} }