mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@663604 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3224ff8a0a
commit
55409bdea0
|
@ -487,6 +487,11 @@ public class BrokerService implements Service {
|
||||||
getBroker().brokerServiceStarted();
|
getBroker().brokerServiceStarted();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.error("Failed to start ActiveMQ JMS Message Broker. Reason: " + e, e);
|
LOG.error("Failed to start ActiveMQ JMS Message Broker. Reason: " + e, e);
|
||||||
|
try{
|
||||||
|
stop();
|
||||||
|
}catch(Exception ex) {
|
||||||
|
LOG.warn("Failed to stop broker after failure in start ",ex);
|
||||||
|
}
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue