JMS Map messages use the class javax.jms.MapMessage. WebSphere® MQ Version 6 provides an encoding
format for the body of JMS Map messages that lets you allocate names
that are not valid XML tags to Map entries.
Before you begin
This encoding format can interoperate with WebSphere MQ Version 5.3 and above, but
not with the earlier WebSphere MQ versions.
All WebSphere MQ JMS clients use
the WebSphere MQ Version 6 encoding
format by default.
About this task
To specify this encoding format, you use the administrative
console to set the encoding name/value pair as custom properties of
the connection factory. If you specify TRUE the WebSphere MQ Version 5 encoding format
is used. If you specify FALSE, the WebSphere MQ Version 6 encoding format
is used.
For related information, see the WebSphere MQ Using Java section
of the WebSphere MQ library.
Procedure
- From the administrative console, navigate to .
- Specify the encoding name and value in the
Name and Value fields. The encoding name is MAPNAMESTYLE,
and the value is a string. Set the value to one of the following strings:
- COMPATIBLE
- Specifies the WebSphere MQ Version
5 compatible format. This is the default value if the property is
not set.
- STANDARD
- Specifies the WebSphere MQ Version
6 format.
- Restart the application server for the properties to take
effect.