JMS formats
To write code that can access the different JMS message types, you need to know how each message type is mapped to SDO, and how to retrieve the message format string from the message.
Format types
Each JMS message type is defined
by a message format string within the message. You can retrieve the
format string by using the code snippet in the following example .
The table shows the mapping of message format strings to Service Data
Objects (SDO):
JMS Message type | Message format string | Mapping to SDO1 |
---|---|---|
JMS Bytes message | JMS:bytes |
See JMS Formats - bytes |
JMS Text message | JMS:text |
See JMS Formats - text |
JMS Stream message | JMS:stream |
See JMS formats - Stream |
JMS Object message | JMS:object |
See JMS Formats - object |
JMS Map message | JMS:map |
The retrieval or construction of SDO data graphs for JMS map messages is not supported. |
1 The version of SDO supported by mediations is Version 1.
This code snippet is an example of how to retrieve the message format string from the message:
String format = siMsg.getFormat();
if (format.equals ....