public void stop() throws Exception { synchronized (this) { jmsBrokerThread.shutdownBroker = true; } if (jmsBrokerThread != null) { jmsBrokerThread.join(); } jmsBrokerThread = null; }
public void start() throws Exception { jmsBrokerThread = new JMSEmbeddedBroker(jmsBrokerUrl); jmsBrokerThread.startBroker(); }