You can use WebSphere MQ Integrator V2 to route or transform messages that are created by a JMS client application, and to send or publish messages to a JMS client.
The WebSphere MQ JMS implementation uses the mcd folder of the MQRFH2 to carry information about the message, as described in The MQRFH2 header. By default, the Message Domain (Msd) property is used to identify whether the message is a text, bytes, stream, map, or object message. This value is set depending on the type of the JMS message.
If the application calls setJMSType it can set the mcd type field to a value of its choosing. This type field can be read by the WebSphere MQ Integrator message flow, and a receiving JMS application can use the getJMSType method to retrieve its value. This applies to all kinds of JMS message.
When a JMS application creates a text or bytes message, the application can set mcd folder fields explicitly by calling the setJMSType method and passing in a string argument in a special URI format as follows:
mcd://domain/[set]/[type][?format=fmt]
This URI form allows an application to set the mcd to a domain that is not one of the standard "jms_xxxx" values; for example, to domain "mrm". It also allows the application to set any or all of the mcd set, type and format fields if desired.
The string argument to setJMSType is interpreted as follows:
When a WebSphere MQ message is received with an Msd domain other than one of the standard "jms_xxxx" values, it is instantiated as a JMS text or bytes message and a URI-style JMSType is assigned to it. The receiving application can read this using the getJMSType method.