Sample JMS message format

The image below shows a simple BTM message format. It defines a couple of JMS message properties, and a payload containing a single string.

The code snippet to the right shows a JMS TextMessage that could be inspected using the BTM message format on the left.

Note that:

  • The JMS Message Header fields (messageID and correlationID) are accessible by using the predefined JMS Message Header format (not shown)
  • Root fields of primitive field types (String, Binary, Numeric) map to JMS Message Properties (aMessageProperty, AnotherMessageProperty)
  • The Message Body Buffer (anXMLDocument) grabs the entire TextMessage payload into the AnXMLDocument String field.
  • Further subfields could be defined under the anXMLDocument field. For example, an XPath query could be run against the document to extract specific attributes or elements of the document.

Was this page helpful? Yes No Submitting... Thank you

Comments