com.ibm.mqe.mqbridge
Class MQeJMSRFHTransformer
java.lang.Object
|
+--com.ibm.mqe.mqbridge.MQeJMSRFHTransformer
- All Implemented Interfaces:
- MQeJMSMsgFieldNames, MQeTransformerInterface
- Direct Known Subclasses:
- MQeMbTransformer
- public class MQeJMSRFHTransformer
- extends java.lang.Object
- implements MQeTransformerInterface, MQeJMSMsgFieldNames
An MQ to MQe transformer class. Messages are transformed as follows:
- Messages from MQe to MQ.
- MQeMsgObject messages, not generated by JMS, are dumped into MQMessage
messages, such that they can be recontructed in their entirety. The MQMD message
type is used to flag such messages.
- MQeMsgObject messages, generated by JMS, are transformed into MQMessage messages,
with an appropriate RFH2 header.
- MQeMQMsgObject messages are transformed into MQMessage messages, allowing full control
over the contents of the MQMD. An RFH2 header is not generated. MQePubSubMsgObject
messages, not used for pub/sub operations, are treated in exactly the same way.
- MQePubSubObject messages, when used for pub/sub operations, are transformed
into MQMessage messages with an appropriate RFH2 header.
- MQeMbMsgObject messages are not supported.
- Messages from MQ to MQe.
- MQMessage messages, containing dumped MQeMsgObject messages, are restored as
MQeMsgObject messages.
- MQMessage messages, containing JMS data, are restored as
appropriate MQe JMS messages. Identification is based on the presence of a
jms folder.
- MQMessage messages, not containing JMS information, and not identifiable
as either a pub/sub message or as a dumped MQeMsgObject, are restored as MQeMQMsgObjects. Any
RFH2 header information is lost.
- MQMessage messages, identifiable as a pub/sub message are restored as
MQePubSubMsgObject messages. Identification is based on the presence of a
pscr folder
This is to be configured as default transformer, as it includes all the
functions of MQeBaseTransformer and MQeGeneralRFHTransformer.
Field Summary |
static java.lang.String |
copyright
|
Fields inherited from interface com.ibm.mqe.jms.MQeJMSMsgFieldNames |
MQe_JMS_BODY, MQe_JMS_CLASS, MQe_JMS_CORRELATIONID, MQe_JMS_DELIVERYMODE, MQe_JMS_DESTINATION, MQe_JMS_EXPIRATION, MQe_JMS_HEADER, MQe_JMS_MESSAGEID, MQe_JMS_PRIORITY, MQe_JMS_PROPERTIES, MQe_JMS_PS_PROPERTIES, MQe_JMS_REDELIVERED, MQe_JMS_REPLYTO, MQe_JMS_TIMESTAMP, MQe_JMS_TYPE, MQe_JMSX_PROPERTIES |
Method Summary |
com.ibm.mq.MQMessage |
transform(MQeMsgObject mqeMsg,
MQeMQBridgeQueue queue,
com.ibm.mq.MQPutMessageOptions options)
Converts an MQe format message into an MQ format message. |
MQeMsgObject |
transform(com.ibm.mq.MQMessage mqMsg,
java.lang.String remoteQMgrName,
java.lang.String remoteQName)
Convert a MQ format message into a MQe format message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
copyright
public static final java.lang.String copyright
- See Also:
- Constant Field Values
MQeJMSRFHTransformer
public MQeJMSRFHTransformer()
transform
public MQeMsgObject transform(com.ibm.mq.MQMessage mqMsg,
java.lang.String remoteQMgrName,
java.lang.String remoteQName)
throws java.lang.Exception
- Convert a MQ format message into a MQe format message. This method is
called by the MQ/MQe bridge.
- Specified by:
transform
in interface MQeTransformerInterface
- Parameters:
mqMsg
- The MQ message object to be transformed.remoteQMgrName
- The destination remote queue manager name
(from the MQ remote queue definition).remoteQName
- The destination remote queue name (from the
MQ remote queue definition).
- Returns:
- The equivalent MQe format message.
- Throws:
java.lang.Exception
- propagated from the called methods.
transform
public com.ibm.mq.MQMessage transform(MQeMsgObject mqeMsg,
MQeMQBridgeQueue queue,
com.ibm.mq.MQPutMessageOptions options)
throws java.lang.Exception
- Converts an MQe format message into an MQ format message. This method is
called by the MQ/MQe bridge.
- Specified by:
transform
in interface MQeTransformerInterface
- Parameters:
mqeMsg
- The MQe message object we are to transform.queue
- A reference to the MQe queue where the message was put
(e.g. For determining default expiry time etc...).options
- A reference to a MQPutMessageOptions object in which any
required options for the put operation should be placed.
- Returns:
- The equivalent MQ format message.
- Throws:
java.lang.Exception
- If the parameters are not valid, or if
the message is in a format that this transformer does not understand.