Apama 10.7.2 | 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 | Adding multiple XPath mapping rules for a received XML document | Using Treat As on JMS Body dialog - Receiver
 
Using Treat As on JMS Body dialog - Receiver
In the Mapping Definitions section of the Receiver Mapping Configuration, when you right-click JMS Body: Text Message and select the Treat as... option, the Treat As dialog appears. The Treat As dialog allows you to select a base type for the JMS body to treat a node in the mapper.
*To select a base type for the JMS body
1. Select the base type of the JMS body type in the Body Type field. If you select Text Message or Bytes Message, you must also select one of the following options:
*Select the String option if you have selected Text Message in the Body Type field.
*Select the Bytes option if you have selected Bytes Message in the Body Type field. If the JMS body is a bytes message, the UTF-8 encoding is used to convert it into a character string.
*Select the XML option and browse for the required XML file.
*Select the XML using schema option and browse for the required schema file using the Type Chooser dialog. See Using the Type Chooser dialog for more information on using the Type Chooser dialog. The Element name is automatically populated if it is defined for the chosen schema file.
2. Click OK.