4.9. Exploring the patterns
In this section we give examples of how AMI can be used to build applications using the different programming patterns.
4.9.1. One-to-one or point-to-point
Send-and-forget
For a send-and-forget application, the following objects will have to be created:
Session
Policy
Sender
Message
The sample program that we discuss in this section follows the logic below:
- Create a session factory object.
- From the session factory, create a session object.
- From the session object, create a policy object, a message object, and a sender object.
- Open the session and the sender objects.
- Populate the message object with data.
- Send the message object on the sender object using the send method.
- Close the sender object and then close the session ...
Get MQSeries Programming Patterns now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.