7.3. Using the MQSeries classes for Java

An application program can interact with MQSeries objects such as MQSeries queues upon establishing a connection to MQSeries queue manager. The queue manager provides the messaging services for the MQSeries objects that it owns.

There are two connection modes that can be used to establish a connection with the queue manager. The way you would program depends on the connection mode you choose. We first look at the two connection modes, binding mode and client connection mode.

7.3.1. Connection modes

The connection modes that can be used in MQSeries JMS are shown in Figure 7-1.

Figure 7-1. Connection modes

Binding mode

In binding mode, also known as server connection, the communication to the queue ...

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.