As you said, the purpose of BrokerService is to run a broker, either as a
standalone process or embedded within your application. A standalone broker
is the most common configuration, because it more easily supports multiple
client processes, but if all your producers and consumers run in the same
I am new about ActiveMQ. I'm trying to study and check how it works by
checking the example code provided by Apache at this link:-
http://activemq.apache.org/how-should-i-implement-request-response-with-jms.html
public class Server implements MessageListener {
private static int ackMode;