LibraryLink ToToggle FramesPrintFeedback

Running the Producer

Use ant producer to send a given number of messages to a queue or topic.

The producer Ant target points to the producerTool.java class, which again uses ActiveMQConnectionFactory to connect to the broker, as shown in Example 4.1.

The producer uses createQueue() or createTopic() to publish to a destination.

[Note]Note

If the destination already exits, the createQueue()and createTopic()are simply used to attach to the destination.