Apama 10.11.3 | Connecting Apama Applications to External Components | Correlator-Integrated Support for the Java Message Service (JMS) | Using the Java Message Service (JMS) | Mapping Apama events and JMS messages
 
Mapping Apama events and JMS messages
 
Simple mapping for JMS messages
Using expressions in mapping rules
Template-based XML generation
Adding multiple XPath mapping rules for a received XML document
Using the XPath Helper
Using convention-based XML mapping with JMS messages
Handling binary data
Using custom EL mapping extensions
JUEL mapping expressions reference for JMS
Implementing a custom Java mapper
Specifying transformation types
After you specify which Apama events you want to associate with JMS messages, you need to create mapping rules that associate Apama event fields with parts of the JMS messages. Apama's adapter editor in Software AG Designer provides a visual mapping tool to create the mapping rules. There are several approaches for how to map Apama events to the JMS messages - these are explained in the topics below.
In addition, you can also specify transformation types:
*XSLT transformation type. Use this approach when receiving JMS messages containing XML to change or simplify the structure of the XML document.
*XPath XML transformation type. Use this approach when receiving JMS messages containing XML to specify values from the XML document that are to be used to populate the fields in the target Apama event.
*XMLDecode transformation type. Use this approach when receiving JMS messages containing XML and multiple rules are working off of the same XML source.
For more information, see Specifying transformation types.