MQe message object classes

Messages from the MQe source to the bridge (or to the MQe input node on the broker) are processed according to the message class. The class hierarchy of the message classes provided by MQe is shown by the shaded boxes in the diagram below. Note that all message classes inherit from the com.ibm.mqe.MQeFields class, which provides a generic ability to get/put data values into the message objects.
Figure 1. Message class hierarchy
Messages from the MQe source to the bridge (or to the MQe input node on the broker) are processed according to the message class
The features of the various classes are:
Table 1. MQe message class features
Message object class Features
com.ibm.mqe.MQeMsgObject Base MQe message class. MQeFields methods used to get/put user data.
com.ibm.mqe.mqemqmessage. MQeMQMsgObject Adds the ability to set the contents of the MQMD and the payload of the MQ message that will be generated by the bridge.
com.ibm.mqe.mqemqmessage. MQePubSubMsgObject Adds specific pub/sub methods to drive the behavior of the broker.
com.ibm.broker.mqimqe.wrapper. MQeMbMsgObject Adds the ability to set the equivalent data to that held in the MQMD of an MQ message. MQeFields methods using defined constants are used to implement pub/sub functionality.
The recommended message classes appropriate to various tasks are shown in the table below:
Table 2. MQe message classes by task
Task Message object class
MQe message tunnelling com.ibm.mqe.MQeMsgObject (or any subclass appropriate to the application)
JMS usage with MQe/MQ com.ibm.mqe.MQeMsgObject (with specifically formatted content)
Driving MQ applications com.ibm.mqe.mqemqmessage.MQeMQMsgObject (or any subclass appropriate to the application)
Note: The default character set for MQeMQMsgObject is 1200. When used with the Websphere Message Broker, this should be altered to 1208.

com.ibm.mqe.mqemqmessage.MQePubSubMsgObject (or any subclass appropriate to the application)

Publish/subscribe (via MQePubSubMsgObject) com.ibm.mqe.mqemqmessage.MQePubSubMsgObject (or any subclass appropriate to the application)
Publish/subscribe (via MQeMbMsgObject) com.ibm.broker.mqimqe.wrapper.MQeMbMsgObject

Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.