7980818283848586878889
if (consumer != null) { try { consumer.close(); consumer = null; } catch (JMSException e) { stopper.onException(this, e); } } if (session != null) { try { session.close();
8788899091929394959697
if (session != null) { try { session.close(); session = null; } catch (JMSException e) { stopper.onException(this, e); } } if (connection != null) { try { connection.close();
9596979899100101102103104105
if (connection != null) { try { connection.close(); connection = null; } catch (JMSException e) { stopper.onException(this, e); } } stopper.throwFirstException(); }
456457458459460461462463464465466
ObjectName name = (ObjectName) iter.next(); try { mbeanServer.unregisterMBean(name); } catch (Exception e) { stopper.onException(mbeanServer, e); } } } stopper.stop(getManagementContext()); }
624625626627628629630631632633634
synchronized (shutdownHooks) { for (Runnable hook : shutdownHooks) { try { hook.run(); } catch (Throwable e) { stopper.onException(hook, e); } } } stopper.throwFirstException();
546547548549550551552553554555556
synchronized (shutdownHooks) { for (Runnable hook : shutdownHooks) { try { hook.run(); } catch (Throwable e) { stopper.onException(hook, e); } } } stopper.throwFirstException(); }
763764765766767768769770771772773
synchronized (shutdownHooks) { for (Runnable hook : shutdownHooks) { try { hook.run(); } catch (Throwable e) { stopper.onException(hook, e); } } } MDC.remove("activemq.broker");