concept stock portfolio example in category activemq

This is an excerpt from Manning's book ActiveMQ in Action.
These steps appear to be simple, and they are. The only item of note is that the Consumer should be started before the Publisher, in order to receive all messages that are published. This is because this example demonstrates pub/sub messaging and topics won’t hold messages unless the consumer makes a durable subscription, and we’re not using durable subscriptions here. So let’s get started with the stock portfolio example.
In chapter 3, we defined a stock portfolio example that uses map messages to exchange data between producers and consumers. For the purpose of this chapter, we’ll modify this original example and make it a better fit for environments described here. Instead of map messages, we’ll exchange XML data in text messages, as that’s the more natural way of communication in some of these environments, such as dynamic languages. So we’ll create a Java message producer that sends text messages with appropriate XML data. Through the rest of the chapter, we’ll implement appropriate consumers for each of the platforms described, which will show us how to connect the specified platform with Java in an asynchronous way.