Apache Camel-Based Listener Object Reference

You can access the following objects while defining the code for your JMS, RabbitMQ, and Db2iDataQueue listeners:
lac52
You can access the following objects while defining the code for your JMS, RabbitMQ, and Db2iDataQueue listeners:
The message object
The Camel 
message
 object is a Camel Message Java instance. This object includes headers, attachments, and body. The body of this object contains the message payload that is received from the RabbitMQ broker, the JMS provider, or the IBM Db2 for i database, in JavaScript scope.
For more information about the 
message
 object and the methods that it supports, see the Apache Camel documentation.
The camelContext Object
The 
camelContext
 object is a Java interface that represents the context used to configure routes and policies during message exchanges.
For more information about the CamelContext Java interface, see the Apache Camel documentation.
The exchange Object
The 
exchange
 object is a Java implementation of the Camel interface exchange that indicates the message exchange pattern if a message exchange is a one-way event message (InOnly) or a request reply message exchange (InOut).
For more information:
The exchangeException Object
The 
exchangeException
 object is an instance of 
java.util.Exception
 which contains the exception instance if any, set on the Camel exchange.
For more information about exchanges in Camel, see the Apache Camel documentation.
The headers Object
The 
headers
 object is a Java object of type 
CaseInsensitiveMap
 by default. This object is the inbound message header. The headers are key value pairs associated with the message, for example, sender identifiers, hints about content encoding, and authentication information.
The outHeaders Object
The 
outHeaders
 object is a Java object and is the inbound message header.
The properties Object
The 
properties
 object is an object of type 
java.util.HashMap
 and contains the properties of an exchange.
For more information about exchanges in Camel, see the Apache Camel documentation.
The payloadAsString Object
The 
payloadAsString
 object is a Java object that contains the payload of the message that the underlying Apache Camel framework converts into 
java.lang.String
. The conversion occurs during bean binding.
For more information about Camel bean binding, see the Apache Camel documentation.
The typeConverter Object
The 
typeConverter
 object is of Java type 
org.apache.camel.TypeConverter
 and defines the type conversion strategy for a particular Apache Camel exchange.
For more information: