6.8. Exploring the patterns

In this section we give examples of how the MQSeries Automation Classes for ActiveX can be used to build applications using the different messaging patterns.

6.8.1. Send-and-forget

The sample program that we discuss in this section follows the logical flow below:

  • Create an MQSession object.
  • From the MQSession object, create an MQQueueManager object, MQQueue object, MQPutMessageOptions object, and MQMessage object.
  • Open the MQQueue object.
  • Populate the MQMessage with data using the MessageData property.
  • Put the MQMessage on the MQQueue using the put method.
  • Read and display all of the data in the MQMessage using the MessageData property. Also, display the format and the MessageId using the Format and MessageId properties. ...

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.