MRM parser and domain

Start of changeYou can use the MRM domain to model a wide range of messages.End of change

Start of changeYou can create message models to represent a wide range of message types, using the MRM domain with one or more optional physical formats; see The MRM domain. Messages in this domain are processed by the MRM parser.End of change

Start of changeWebSphere Message Broker uses the MRM parser to read and write messages that belong to the MRM domain. When reading a message, the MRM parser constructs a message tree from a bit stream. When writing a message, the MRM parser creates a bit stream from a message tree. The MRM parser is model-driven, and it is guided by a message dictionary, which describes the shape of the message tree (the logical model) and the bytes or characters in the bit stream (the physical format). A message dictionary is created automatically from a message set when it is added to the bar file. The operation of the parser depends on the physical format that you have associated with the input or output message: End of change

In the MRM domain, the message is considered in two parts:

This two-part definition can be useful because it handles situations in which you need to connect two different systems. For example, a legacy-style application that expects data to be passed to it in the form of COBOL copybooks needs to communicate with a system that expects data in the form of XML. Both applications work with the same data, and it would be undesirable to alter either application. By routing the messages through a broker, you can use a single logical model with multiple physical representations to provide the required transformation.

The following samples all use the MRM parser to process messages:
Related concepts
The MRM domain
XML messages in the MRM and XML domains
ESQL overview
XML parsers and domains
JMS parser and domains
Logical tree structure
Correlation names
Message modeling concepts
Physical formats in the MRM domain
Related tasks
Designing a message flow
Developing ESQL
Developing Java
Manipulating message body content
Manipulating messages in the MRM domain
Related reference
Message model reference information