Classes
The WebSphere MQ Object Model provides the following base set of classes. The
actual implementation of the model varies slightly between the different supported
object-oriented environments.
- MQQueueManager
- An object of the MQQueueManager class represents a connection to a queue
manager. It has methods to Connect(),
Disconnect(), Commit(), and Backout() (the equivalent of MQCONN or MQCONNX,
MQDISC, MQCMIT, and MQBACK). It has properties corresponding to the attributes
of a queue manager. Accessing a queue manager attribute property implicitly
connects to the queue manager if not already connected. Destroying an MQQueueManager
object implicitly disconnects from the queue manager.
- MQQueue
- An object of the MQQueue class represents a queue. It has methods to
Put() and Get() messages to and from the queue (the equivalent of MQPUT and
MQGET). It has properties corresponding to the attributes of a queue. Accessing
a queue attribute property, or issuing a Put() or Get() method call, implicitly
opens the queue (the equivalent of MQOPEN). Destroying an MQQueue object implicitly
closes the queue (the equivalent of MQCLOSE).
- MQMessage
- An object of the MQMessage class represents a message to be put on a
queue or got from a queue. It contains a buffer, and encapsulates both application
data and MQMD. It has properties corresponding to MQMD fields, and methods
that allow you to write and read user data of different types (for example,
strings, long integers, short integers, single bytes) to and from the buffer.
- MQPutMessageOptions
- An object of the MQPutMessageOptions class represents the MQPMO structure.
It has properties corresponding to MQPMO fields.
- MQGetMessageOptions
- An object of the MQGetMessageOptions class represents the MQGMO structure.
It has properties corresponding to MQGMO fields.
- MQProcess
- An object of the MQProcess class represents a process definition (used
with triggering). It has properties that represent the attributes of a process
definition.
- MQDistributionList
- (Not WebSphere MQ for z/OS.) An object of the MQDistributionList
class represents a distribution list (used to send multiple messages with
a single MQPUT). It contains a list of MQDistributionListItem objects.
- MQDistributionListItem
- (Not WebSphere MQ for z/OS.) An object of the MQDistributionListItem
class represents a single distribution list destination. It encapsulates the
MQOR, MQRR, and MQPMR structures, and has properties corresponding to the
fields of these structures.