LibraryLink ToToggle FramesPrintFeedback

Running the Consumer

To run the consumer, type ant consumer at the command prompt. By default, the consumer consumes the published messages from a queue.

The consumer Ant target points to the consumerTool.java class, which uses the ActiveMQConnectionFactory class to connect to the broker, as shown:


The consumer uses createQueue()to create a queue or createTopic()depending on which arguments you pass in at runtime. The queue or topic name is defined as TEST.FOO in the build.xml.