4041424344454647484950
BrokerContainerImpl container = createBroker(); // start a client ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("tcp://localhost:9100"); factory.start(); factory.createConnection(); // stop activemq broker container.stop();
5253545556575859606162
container = createBroker(); // start a client again factory = new ActiveMQConnectionFactory("tcp://localhost:9100"); factory.start(); factory.createConnection(); // stop activemq broker container.stop();