Network Deployment (Distributed operating systems), v8.0 > Reference > Developer best practices


JMS formats

To write code that can access the different JMS message types, 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. We can retrieve the format string by using the code snippet in the example below. The following table shows the mapping of message format strings to Service Data Objects (SDO):

JMS Message type Message format string Map 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 v1.


Example

This code snippet is an example of how to retrieve the message format string from the message:

String format = siMsg.getFormat();
if (format.equals ....

+

Search Tips   |   Advanced Search