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.
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 ....