JMS message type | Conversion |
---|---|
Bytes message | ByteArrayOutputStream.toByteArray(); |
Object message | <serialized object>.toByteArray(); |
Text message | String.getBytes("UTF-8"); |
When the JMS message body is stored in an MQeMsgObject, this byte array is added directly to the MQeMsgObject with the name MQe.MQe_JMS_BODY.