}
}
public synchronized void doFail() {
if (brokerService != null) {
BrokerService temp = brokerService;
brokerService = null;
try {
temp.stop();
} catch (JMSException ignored) {
// just a lame exception ActiveMQ likes to throw on shutdown
if (!(ignored.getCause() instanceof TransportDisposedIOException)) {
log.warn("Caught while closing due to failure: " + ignored, ignored);
}