4.5. Programming with AMI

In the following sections we will see how AMI applies the common steps used when working with queue manager objects that were discussed in Chapter 1, “Introduction and patterns” on page 3. The examples provided in this section were written using the Java interface. For information on how to issue the calls in any other programming language where AMI is supported, please refer to the Application Messaging Interface documentation.

4.5.1. Connecting to the queue manager

Just as in the other MQSeries APIs, we must connect to a queue manager before attempting to access any queue manager object. This can be achieved by using two AMI Java calls. First we need to create a new session factory object. Remember that in order ...

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.