concept worker in category activemq

This is an excerpt from Manning's book ActiveMQ in Action.
The diagram shown in figure 7.2 depicts an overview of the request/reply paradigm. Note that the client consists of both a producer and a consumer, and the worker also consists of both a producer and a consumer. These two entities are both explained next.
As you can see, the start() method calls one method to create and start an embedded broker, and another method to create and start up the worker. The create-Broker() method uses the BrokerService class to create an embedded broker. The setupConsumer() method creates all the necessary JMS objects for receiving and sending messages including a connection, a session, a destination, a consumer, and a producer. The producer is created without a default destination, because it’ll send messages to destinations that are specified in each message’s JMSReplyTo property.