Deploying and Managing Apama Applications > Correlator-Integrated JMS Messaging > Mapping Apama events and JMS messages > Convention-based XML mapping > Using convention-based XML mapping when receiving/parsing messages
Using convention-based XML mapping when receiving/parsing messages
To map a received JMS message to an Apama event using the convention-based approach:
1. Create an Apama event type with fields that correspond in type and order to the structure of the XML document, and ensure that the target event type you are mapping to has a field of this type, whose field name is the root element of the expected XML document.
2. Drag a mapping line from the JMS message node containing the XML document (for example, the JMS Body) to the field named after the root element in the target Apama event. Assuming the JMS message contains an XML document (a string beginning with an open angle bracket character "<" ), the document will be parsed and the results will be used to populate the fields of the target event.
Copyright © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.