Mapping Apama events and JMS messages
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. The Apama Studio adapter editor provides a visual mapping tool to create the mapping rules. There are several approaches for how to map Apama events to the JMS messages.
Template-based XML generation - Use this when sending JMS messages containing XML; you assign a template to generate an XML document, containing placeholder values substituted in from fields in the source event.
Convention-based XML mapping - Use this to parse or generate XML documents by using event definitions that follow specific conventions to implicitly encode the structure of the XML document. This approach allows mapping of sequences to elements of the same type. It avoids the need for XPath, but does impose some limitations on the XML naming and structure.