You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2012/08/23 10:20:16 UTC

svn commit: r829838 [1/3] - in /websites/production/camel/content: book-component-appendix.html book-in-one-page.html cache/main.pageCache jms.html

Author: buildbot
Date: Thu Aug 23 08:20:15 2012
New Revision: 829838

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/book-component-appendix.html
    websites/production/camel/content/book-in-one-page.html
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/jms.html

Modified: websites/production/camel/content/book-component-appendix.html
==============================================================================
--- websites/production/camel/content/book-component-appendix.html (original)
+++ websites/production/camel/content/book-component-appendix.html Thu Aug 23 08:20:15 2012
@@ -8895,7 +8895,8 @@ rnc:someLocalOrRemoteResource
 
 <p>Maven users will need to add the following dependency to their <tt>pom.xml</tt> for this component:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml"><span class="code-tag">&lt;dependency&gt;</span>
+<pre class="code-xml">
+<span class="code-tag">&lt;dependency&gt;</span>
     <span class="code-tag">&lt;groupId&gt;</span>org.apache.camel<span class="code-tag">&lt;/groupId&gt;</span>
     <span class="code-tag">&lt;artifactId&gt;</span>camel-jms<span class="code-tag">&lt;/artifactId&gt;</span>
     <span class="code-tag">&lt;version&gt;</span>x.x.x<span class="code-tag">&lt;/version&gt;</span>
@@ -8907,21 +8908,24 @@ rnc:someLocalOrRemoteResource
 <h3><a shape="rect" name="BookComponentAppendix-URIformat"></a>URI format</h3>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">jms:[queue:|topic:]destinationName[?options]
+<pre class="code-java">
+jms:[queue:|topic:]destinationName[?options]
 </pre>
 </div></div>
 
 <p>Where <tt>destinationName</tt> is a JMS queue or topic name. By default, the <tt>destinationName</tt> is interpreted as a queue name. For example, to connect to the queue, <tt>FOO.BAR</tt> use:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">jms:FOO.BAR
+<pre class="code-java">
+jms:FOO.BAR
 </pre>
 </div></div>
 
 <p>You can include the optional <tt>queue:</tt> prefix, if you prefer:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">jms:queue:FOO.BAR
+<pre class="code-java">
+jms:queue:FOO.BAR
 </pre>
 </div></div>
 
@@ -8929,7 +8933,8 @@ rnc:someLocalOrRemoteResource
 connect to the topic, <tt>Stocks.Prices</tt>, use:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">jms:topic:Stocks.Prices
+<pre class="code-java">
+jms:topic:Stocks.Prices
 </pre>
 </div></div>
 
@@ -8985,7 +8990,7 @@ In Camel 2.8 onwards, the default settin
 
 <h4><a shape="rect" name="BookComponentAppendix-Mostcommonlyusedoptions"></a>Most commonly used options</h4>
 <div class="confluenceTableSmall"><div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Option </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>clientId</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Sets the JMS client ID to use. Note that this value, if specified, must be unique and can only be used by a single JMS connection instance. It is typically only required for durable topic subscriptions. You may prefer to use <a shape="rect" class="external-link" href="http://activemq.apache.org/virtual-destinations.html">Virtual Topics</a> instead. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>concurrentConsumers</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>1</tt> </td><td colspan="1" rowspan="1" class
 ="confluenceTd"> Specifies the default number of concurrent consumers. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>disableReplyTo</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> If <tt>true</tt>, a producer will behave like a InOnly exchange with the exception that <tt>JMSReplyTo</tt> header is sent out and not be suppressed like in the case of <tt>InOnly</tt>. Like <tt>InOnly</tt> the producer will not wait for a reply. A consumer with this flag will behave like <tt>InOnly</tt>. This feature can be used to bridge <tt>InOut</tt> requests to another queue so that a route on the other queue will send it&#180;s response directly back to the original <tt>JMSReplyTo</tt>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>durableSubscriptionName</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="c
 onfluenceTd"> The durable subscriber name for specifying durable topic subscriptions. The <tt>clientId</tt> option <b>must</b> be configured as well. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>maxConcurrentConsumers</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>1</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies the maximum number of concurrent consumers. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>preserveMessageQos</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Set to <tt>true</tt>, if you want to send message using the QoS settings specified on the message, instead of the QoS settings on the JMS endpoint. The following three headers are considered <tt>JMSPriority</tt>, <tt>JMSDeliveryMode</tt>, and <tt>JMSExpiration</tt>. You can provide all or only some of them. If not provided, Camel will fall back to u
 se the values from the endpoint instead. So, when using this option, the headers override the values from the endpoint. The <tt>explicitQosEnabled</tt> option, by contrast, will only use options set on the endpoint, and not values from the message header. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>replyTo</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Provides an explicit ReplyTo destination, which overrides any incoming value of <tt>Message.getJMSReplyTo()</tt>. If you do <a shape="rect" href="request-reply.html" title="Request Reply">Request Reply</a> over JMS then <b>make sure</b> to read the section <em>Request-reply over JMS</em> further below for more details, and the <tt>replyToType</tt> option as well. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>replyToType</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td
  colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9:</b> Allows for explicitly specifying which kind of strategy to use for replyTo queues when doing request/reply over JMS. Possible values are: <tt>Temporary</tt>, <tt>Shared</tt>, or <tt>Exclusive</tt>. By default Camel will use temporary queues. However if <tt>replyTo</tt> has been configured, then <tt>Shared</tt> is used by default. This option allows you to use exclusive queues instead of shared ones. See further below for more details, and especially the notes about the implications if running in a clustered environment, and the fact that <tt>Shared</tt> reply queues has lower performance than its alternatives <tt>Temporary</tt> and <tt>Exclusive</tt>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>requestTimeout</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>20000</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Producer only:</b> The timeout for waiting for a
  reply when using the InOut <a shape="rect" href="exchange-pattern.html" title="Exchange Pattern">Exchange Pattern</a> (in milliseconds). The default is 20 seconds. See below in section <em>About time to live</em> for more details. See also the <em>requestTimeoutCheckerInterval</em> option. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>selector</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Sets the JMS Selector, which is an SQL 92 predicate that is used to filter messages within the broker. You may have to encode special characters such as = as %3D <b>Before Camel 2.3.0</b>, we don't support this option in CamelConsumerTemplate </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>timeToLive</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> When sending messages, specifies the tim
 e-to-live of the message (in milliseconds). See below in section <em>About time to live</em> for more details. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>transacted</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether to use transacted mode for sending/receiving messages using the InOnly <a shape="rect" href="exchange-pattern.html" title="Exchange Pattern">Exchange Pattern</a>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>testConnectionOnStartup</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.1:</b> Specifies whether to test the connection on startup. This ensures that when Camel starts that all the JMS consumers have a valid connection to the JMS broker. If a connection cannot be granted then Camel throws an exception on startup. This ensures
  that Camel is not started with failed connections. From <b>Camel 2.8</b> onwards also the JMS producers is tested as well. </td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Option </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>clientId</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Sets the JMS client ID to use. Note that this value, if specified, must be unique and can only be used by a single JMS connection instance. It is typically only required for durable topic subscriptions. You may prefer to use <a shape="rect" class="external-link" href="http://activemq.apache.org/virtual-destinations.html">Virtual Topics</a> instead. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>concurrentConsumers</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>1</tt> </td><td colspan="1" rowspan="1" class
 ="confluenceTd"> Specifies the default number of concurrent consumers. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>disableReplyTo</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> If <tt>true</tt>, a producer will behave like a InOnly exchange with the exception that <tt>JMSReplyTo</tt> header is sent out and not be suppressed like in the case of <tt>InOnly</tt>. Like <tt>InOnly</tt> the producer will not wait for a reply. A consumer with this flag will behave like <tt>InOnly</tt>. This feature can be used to bridge <tt>InOut</tt> requests to another queue so that a route on the other queue will send it&#180;s response directly back to the original <tt>JMSReplyTo</tt>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>durableSubscriptionName</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="c
 onfluenceTd"> The durable subscriber name for specifying durable topic subscriptions. The <tt>clientId</tt> option <b>must</b> be configured as well. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>maxConcurrentConsumers</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>1</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies the maximum number of concurrent consumers. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>maxMessagesPerTask</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>-1</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The number of messages per task. -1 is unlimited. If you use a range for concurrent consumers (eg min &lt; max), then this option can be used to set a value to eg <tt>100</tt> to control how fast the consumers will shrink when less work is required. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>preserveMessageQos</tt> </td><td col
 span="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Set to <tt>true</tt>, if you want to send message using the QoS settings specified on the message, instead of the QoS settings on the JMS endpoint. The following three headers are considered <tt>JMSPriority</tt>, <tt>JMSDeliveryMode</tt>, and <tt>JMSExpiration</tt>. You can provide all or only some of them. If not provided, Camel will fall back to use the values from the endpoint instead. So, when using this option, the headers override the values from the endpoint. The <tt>explicitQosEnabled</tt> option, by contrast, will only use options set on the endpoint, and not values from the message header. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>replyTo</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Provides an explicit ReplyTo destination, which overrides any in
 coming value of <tt>Message.getJMSReplyTo()</tt>. If you do <a shape="rect" href="request-reply.html" title="Request Reply">Request Reply</a> over JMS then <b>make sure</b> to read the section <em>Request-reply over JMS</em> further below for more details, and the <tt>replyToType</tt> option as well. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>replyToType</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9:</b> Allows for explicitly specifying which kind of strategy to use for replyTo queues when doing request/reply over JMS. Possible values are: <tt>Temporary</tt>, <tt>Shared</tt>, or <tt>Exclusive</tt>. By default Camel will use temporary queues. However if <tt>replyTo</tt> has been configured, then <tt>Shared</tt> is used by default. This option allows you to use exclusive queues instead of shared ones. See further below for more details, and especially the no
 tes about the implications if running in a clustered environment, and the fact that <tt>Shared</tt> reply queues has lower performance than its alternatives <tt>Temporary</tt> and <tt>Exclusive</tt>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>requestTimeout</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>20000</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Producer only:</b> The timeout for waiting for a reply when using the InOut <a shape="rect" href="exchange-pattern.html" title="Exchange Pattern">Exchange Pattern</a> (in milliseconds). The default is 20 seconds. See below in section <em>About time to live</em> for more details. See also the <em>requestTimeoutCheckerInterval</em> option. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>selector</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Sets the JMS Selector, whic
 h is an SQL 92 predicate that is used to filter messages within the broker. You may have to encode special characters such as = as %3D <b>Before Camel 2.3.0</b>, we don't support this option in CamelConsumerTemplate </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>timeToLive</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> When sending messages, specifies the time-to-live of the message (in milliseconds). See below in section <em>About time to live</em> for more details. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>transacted</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether to use transacted mode for sending/receiving messages using the InOnly <a shape="rect" href="exchange-pattern.html" title="Exchange Pattern">Exchange Pattern</a>. </td></tr><tr><td colspa
 n="1" rowspan="1" class="confluenceTd"> <tt>testConnectionOnStartup</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.1:</b> Specifies whether to test the connection on startup. This ensures that when Camel starts that all the JMS consumers have a valid connection to the JMS broker. If a connection cannot be granted then Camel throws an exception on startup. This ensures that Camel is not started with failed connections. From <b>Camel 2.8</b> onwards also the JMS producers is tested as well. </td></tr></tbody></table>
 </div>
 
 
@@ -8994,7 +8999,7 @@ In Camel 2.8 onwards, the default settin
 <div class="confluenceTableSmall"></div>
 <div class="table-wrap">
 <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Option </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>acceptMessagesWhileStopping</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether the consumer accept messages while it is stopping. You may consider enabling this option, if you start and stop <a shape="rect" href="jms.html" title="JMS">JMS</a> routes at runtime, while there are still messages enqued on the queue. If this option is <tt>false</tt>, and you stop the <a shape="rect" href="jms.html" title="JMS">JMS</a> route, then messages may be rejected, and the JMS broker would have to attempt redeliveries, which yet again may be rejected, and eventually the message may be moved at a d
 ead letter queue on the JMS broker. To avoid this its recommended to enable this option. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>acknowledgementModeName</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>AUTO_ACKNOWLEDGE</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The JMS acknowledgement name, which is one of: <tt>TRANSACTED</tt>, <tt>CLIENT_ACKNOWLEDGE</tt>, <tt>AUTO_ACKNOWLEDGE</tt>, <tt>DUPS_OK_ACKNOWLEDGE</tt> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>acknowledgementMode</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>-1</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The JMS acknowledgement mode defined as an Integer. Allows you to set vendor-specific extensions to the acknowledgment mode. For the regular modes, it is preferable to use the <tt>acknowledgementModeName</tt> instead. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>allowNullBody
 </tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.3/2.10.1:</b> Whether to allow sending messages with no body. If this option is <tt>false</tt> and the message body is null, then an <tt>JMSException</tt> is thrown. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>alwaysCopyMessage</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> If <tt>true</tt>, Camel will always make a JMS message copy of the message when it is passed to the producer for sending. Copying the message is needed in some situations, such as when a <tt>replyToDestinationSelectorName</tt> is set (incidentally, Camel will set the <tt>alwaysCopyMessage</tt> option to <tt>true</tt>, if a <tt>replyToDestinationSelectorName</tt> is set) </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>asyncConsumer</tt> </td
 ><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9:</b> Whether the <tt>JmsConsumer</tt> processes the <a shape="rect" href="exchange.html" title="Exchange">Exchange</a> <a shape="rect" href="asynchronous-routing-engine.html" title="Asynchronous Routing Engine">asynchronously</a>. If enabled then the <tt>JmsConsumer</tt> may pickup the next message from the JMS queue, while the previous message is being processed asynchronously (by the <a shape="rect" href="asynchronous-routing-engine.html" title="Asynchronous Routing Engine">Asynchronous Routing Engine</a>). This means that messages may be processed not 100% strictly in order. If disabled (as default) then the <a shape="rect" href="exchange.html" title="Exchange">Exchange</a> is fully processed before the <tt>JmsConsumer</tt> will pickup the next message from the JMS queue. Note if <tt>transacted</tt> has been enabled, then <tt>asyncConsumer=
 true</tt> does not run asynchronously, as transactions must be executed synchronously (Camel 3.0 may support async transactions). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>asyncStartListener</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Whether to startup the <tt>JmsConsumer</tt> message listener asynchronously, when starting a route. For example if a <tt>JmsConsumer</tt> cannot get a connection to a remote JMS broker, then it may block while retrying and/or failover. This will cause Camel to block while starting routes. By setting this option to <tt>true</tt>, you will let routes startup, while the <tt>JmsConsumer</tt> connects to the JMS broker using a dedicated thread in asynchronous mode. If this option is used, then beware that if the connection could not be established, then an exception is logged at <tt>WARN</tt> level, and the consumer will
  not be able to receive messages; You can then restart the route to retry. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>asyncStopListener</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Whether to stop the <tt>JmsConsumer</tt> message listener asynchronously, when stopping a route. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>autoStartup</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether the consumer container should auto-startup. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>cacheLevelName</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> CACHE_AUTO (Camel &gt;= 2.8.0)<br clear="none" class="atl-forced-newline">
- CACHE_CONSUMER (Camel &lt;= 2.7.1) </td><td colspan="1" rowspan="1" class="confluenceTd"> Sets the cache level by name for the underlying JMS resources. Possible values are: <tt>CACHE_AUTO</tt>, <tt>CACHE_CONNECTION</tt>, <tt>CACHE_CONSUMER</tt>, <tt>CACHE_NONE</tt>, and <tt>CACHE_SESSION</tt>. The default setting for <b>Camel 2.8</b> and newer is <tt>CACHE_AUTO</tt>. For <b>Camel 2.7.1</b> and older the default is <tt>CACHE_CONSUMER</tt>. See the <a shape="rect" class="external-link" href="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/jms/listener/DefaultMessageListenerContainer.html" rel="nofollow">Spring documentation</a> and <a shape="rect" href="#BookComponentAppendix-transactionCacheLevels">Transactions Cache Levels</a> for more information. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>cacheLevel</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" class="confluenceTd"> S
 ets the cache level by ID for the underlying JMS resources. See <tt>cacheLevelName</tt> option for more details. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>consumerType</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>Default</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The consumer type to use, which can be one of: <tt>Simple</tt> or <tt>Default</tt>. The consumer type determines which Spring JMS listener to use. <tt>Default</tt> will use <tt>org.springframework.jms.listener.DefaultMessageListenerContainer</tt>, <tt>Simple</tt> will use <tt>org.springframework.jms.listener.SimpleMessageListenerContainer</tt>. This option was temporary removed in Camel 2.7 and 2.8. But has been added back from Camel 2.9 onwards. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>connectionFactory</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd
 "> The default JMS connection factory to use for the <tt>listenerConnectionFactory</tt> and <tt>templateConnectionFactory</tt>, if neither is specified. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>deliveryPersistent</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether persistent delivery is used by default. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>destination</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies the JMS Destination object to use on this endpoint. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>destinationName</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies the JMS destination name to use on this endpoint. </td></tr><tr><td 
 colspan="1" rowspan="1" class="confluenceTd"> <tt>destinationResolver</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> A pluggable <tt>org.springframework.jms.support.destination.DestinationResolver</tt> that allows you to use your own resolver (for example, to lookup the real destination in a JNDI registry). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>disableTimeToLive</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.8:</b> Use this option to force disabling time to live. For example when you do request/reply over JMS, then Camel will by default use the <tt>requestTimeout</tt> value as time to live on the message being sent. The problem is that the sender and receiver systems have to have their clocks synchronized, so they are in sync. This is not always so easy to archive. So you 
 can use <tt>disableTimeToLive=true</tt> to <b>not</b> set a time to live value on the sent message. Then the message will not expire on the receiver system. See below in section <em>About time to live</em> for more details. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>eagerLoadingOfProperties</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Enables eager loading of JMS properties as soon as a message is received, which is generally inefficient, because the JMS properties might not be required. But this feature can sometimes catch early any issues with the underlying JMS provider and the use of JMS properties. This feature can also be used for testing purposes, to ensure JMS properties can be understood and handled correctly. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>exceptionListener</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>
 null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies the JMS Exception Listener that is to be notified of any underlying JMS exceptions. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>errorHandler</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.8.2, 2.9:</b> Specifies a <tt>org.springframework.util.ErrorHandler</tt> to be invoked in case of any uncaught exceptions thrown while processing a <tt>Message</tt>. By default these exceptions will be logged at the WARN level, if no <tt>errorHandler</tt> has been configured. From <b>Camel 2.9.1:</b> onwards you can configure logging level and whether stack traces should be logged using the below two options. This makes it much easier to configure, than having to code a custom <tt>errorHandler</tt>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>errorHandlerLoggingLevel</tt> </td><
 td colspan="1" rowspan="1" class="confluenceTd"> <tt>WARN</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.1:</b> Allows to configure the default <tt>errorHandler</tt> logging level for logging uncaught exceptions. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>errorHandlerLogStackTrace</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.1:</b> Allows to control whether stacktraces should be logged or not, by the default <tt>errorHandler</tt>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>explicitQosEnabled</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Set if the <tt>deliveryMode</tt>, <tt>priority</tt> or <tt>timeToLive</tt> qualities of service should be used when sending messages. This option is based on Spring's <tt>JmsTemplate</tt>. 
 The <tt>deliveryMode</tt>, <tt>priority</tt> and <tt>timeToLive</tt> options are applied to the current endpoint. This contrasts with the <tt>preserveMessageQos</tt> option, which operates at message granularity, reading QoS properties exclusively from the Camel In message headers. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>exposeListenerSession</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether the listener session should be exposed when consuming messages. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>forceSendOriginalMessage</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.7:</b> When using <tt>mapJmsMessage=false</tt> Camel will create a new JMS message to send to a new JMS destination if you touch the headers (get or set) during the route.
  Set this option to <tt>true</tt> to force Camel to send the original JMS message that was received. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>idleTaskExecutionLimit</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>1</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies the limit for idle executions of a receive task, not having received any message within its execution. If this limit is reached, the task will shut down and leave receiving to other executing tasks (in the case of dynamic scheduling; see the <tt>maxConcurrentConsumers</tt> setting). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>idleConsumerLimit</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>1</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.8.2, 2.9:</b> Specify the limit for the number of consumers that are allowed to be idle at any given time. </td></tr><tr><td colspan="1" rowspan="1" class
 ="confluenceTd"> <tt>jmsMessageType</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Allows you to force the use of a specific <tt>javax.jms.Message</tt> implementation for sending JMS messages. Possible values are: <tt>Bytes</tt>, <tt>Map</tt>, <tt>Object</tt>, <tt>Stream</tt>, <tt>Text</tt>. By default, Camel would determine which JMS message type to use from the In body type. This option allows you to specify it. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>jmsKeyFormatStrategy</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>default</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Pluggable strategy for encoding and decoding JMS keys so they can be compliant with the JMS specification. Camel provides two implementations out of the box: <tt>default</tt> and <tt>passthrough</tt>. The <tt>default</tt> strategy will safely marshal dots and hyphens 
 (<tt>.</tt> and <tt>-</tt>). The <tt>passthrough</tt> strategy leaves the key as is. Can be used for JMS brokers which do not care whether JMS header keys contain illegal characters. You can provide your own implementation of the <tt>org.apache.camel.component.jms.JmsKeyFormatStrategy</tt> and refer to it using the <tt>#</tt> notation. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>jmsOperations</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Allows you to use your own implementation of the <tt>org.springframework.jms.core.JmsOperations</tt> interface. Camel uses <tt>JmsTemplate</tt> as default. Can be used for testing purpose, but not used much as stated in the spring API docs. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>lazyCreateTransactionManager</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan
 ="1" class="confluenceTd"> If <tt>true</tt>, Camel will create a <tt>JmsTransactionManager</tt>, if there is no <tt>transactionManager</tt> injected when option <tt>transacted=true</tt>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>listenerConnectionFactory</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The JMS connection factory used for consuming messages. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>mapJmsMessage</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether Camel should auto map the received JMS message to an appropiate payload type, such as <tt>javax.jms.TextMessage</tt> to a <tt>String</tt> etc. See section about how mapping works below for more details. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>maxMessagesPerTask</tt>
  </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>-1</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The number of messages per task. -1 is unlimited. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>maximumBrowseSize</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>-1</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Limits the number of messages fetched at most, when browsing endpoints using <a shape="rect" href="browse.html" title="Browse">Browse</a> or JMX API. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>messageConverter</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> To use a custom Spring <tt>org.springframework.jms.support.converter.MessageConverter</tt> so you can be 100% in control how to map to/from a <tt>javax.jms.Message</tt>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>m
 essageIdEnabled</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> When sending, specifies whether message IDs should be added. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>messageTimestampEnabled</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether timestamps should be enabled by default on sending messages. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>password</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The password for the connector factory. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>priority</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>4</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Values greater than 1 specify the 
 message priority when sending (where 0 is the lowest priority and 9 is the highest). The <tt>explicitQosEnabled</tt> option <b>must</b> also be enabled in order for this option to have any effect. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>pubSubNoLocal</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether to inhibit the delivery of messages published by its own connection. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>receiveTimeout</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <em>None</em> </td><td colspan="1" rowspan="1" class="confluenceTd"> The timeout for receiving messages (in milliseconds). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>recoveryInterval</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>5000</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies the
  interval between recovery attempts, i.e. when a connection is being refreshed, in milliseconds. The default is 5000 ms, that is, 5 seconds. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>replyToCacheLevelName</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> CACHE_CONSUMER </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.1:</b> Sets the cache level by name for the reply consumer when doing request/reply over JMS. This option only applies when using fixed reply queues (not temporary). Camel will by default use: <tt>CACHE_CONSUMER</tt> for exclusive or shared w/ <tt>replyToSelectorName</tt>. And <tt>CACHE_SESSION</tt> for shared without <tt>replyToSelectorName</tt>. Some JMS brokers such as IBM WebSphere may require to set the <tt>replyToCacheLevelName=CACHE_NONE</tt> to work. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>replyToDestinationSelectorName</tt> </td><td colspan="1" rowspan="1" class="confluen
 ceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Sets the JMS Selector using the fixed name to be used so you can filter out your own replies from the others when using a shared queue (that is, if you are not using a temporary reply queue). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>replyToDeliveryPersistent</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether to use persistent delivery by default for replies. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>requestTimeoutCheckerInterval</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>1000</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> Configures how often Camel should check for timed out <a shape="rect" href="exchange.html" title="Exchange">Exchange</a>s when doing request/reply over JMS.By default Camel checks on
 ce per second. But if you must react faster when a timeout occurs, then you can lower this interval, to check more frequently. The timeout is determined by the option <em>requestTimeout</em>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>subscriptionDurable</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>@deprecated:</b> Enabled by default, if you specify a <tt>durableSubscriberName</tt> and a <tt>clientId</tt>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>taskExecutor</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Allows you to specify a custom task executor for consuming messages. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>taskExecutorSpring2</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rows
 pan="1" class="confluenceTd"> <b>Camel 2.6:</b> To use when using Spring 2.x with Camel. Allows you to specify a custom task executor for consuming messages. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>templateConnectionFactory</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The JMS connection factory used for sending messages. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>transactedInOut</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>@deprecated:</b> Specifies whether to use transacted mode for sending messages using the InOut <a shape="rect" href="exchange-pattern.html" title="Exchange Pattern">Exchange Pattern</a>. Applies only to producer endpoints. See section <a shape="rect" href="#BookComponentAppendix-transactedConsumption">Enabling Transacted Consumption</a
 > for more details. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>transactionManager</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The Spring transaction manager to use. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>transactionName</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>"JmsConsumer[destinationName]"</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The name of the transaction to use. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>transactionTimeout</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The timeout value of the transaction, if using transacted mode. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>transferException</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt
 > </td><td colspan="1" rowspan="1" class="confluenceTd"> If enabled and you are using <a shape="rect" href="request-reply.html" title="Request Reply">Request Reply</a> messaging (InOut) and an <a shape="rect" href="exchange.html" title="Exchange">Exchange</a> failed on the consumer side, then the caused <tt>Exception</tt> will be send back in response as a <tt>javax.jms.ObjectMessage</tt>. If the client is Camel, the returned <tt>Exception</tt> is rethrown. This allows you to use Camel <a shape="rect" href="jms.html" title="JMS">JMS</a> as a bridge in your routing - for example, using persistent queues to enable robust routing. Notice that if you also have <b>transferExchange</b> enabled, this option takes precedence. The caught exception is required to be serializable. The original <tt>Exception</tt> on the consumer side can be wrapped in an outer exception such as <tt>org.apache.camel.RuntimeCamelException</tt> when returned to the producer. </td></tr><tr><td colspan="1" r
 owspan="1" class="confluenceTd"> <tt>transferExchange</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> You can transfer the exchange over the wire instead of just the body and headers. The following fields are transferred: In body, Out body, Fault body, In headers, Out headers, Fault headers, exchange properties, exchange exception. This requires that the objects are serializable. Camel will exclude any non-serializable objects and log it at <tt>WARN</tt> level. You <b>must</b> enable this option on both the producer and consumer side, so Camel knows the payloads is an Exchange and not a regular payload. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>username</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The username for the connector factory. </td></tr><tr><td colspan="1" rowspan="1" class="c
 onfluenceTd"> <tt>useMessageIDAsCorrelationID</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether <tt>JMSMessageID</tt> should always be used as <tt>JMSCorrelationID</tt> for <b>InOut</b> messages. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useVersion102</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>@deprecated (removed from Camel 2.5 onwards):</b> Specifies whether the old JMS API should be used. </td></tr></tbody></table>
+ CACHE_CONSUMER (Camel &lt;= 2.7.1) </td><td colspan="1" rowspan="1" class="confluenceTd"> Sets the cache level by name for the underlying JMS resources. Possible values are: <tt>CACHE_AUTO</tt>, <tt>CACHE_CONNECTION</tt>, <tt>CACHE_CONSUMER</tt>, <tt>CACHE_NONE</tt>, and <tt>CACHE_SESSION</tt>. The default setting for <b>Camel 2.8</b> and newer is <tt>CACHE_AUTO</tt>. For <b>Camel 2.7.1</b> and older the default is <tt>CACHE_CONSUMER</tt>. See the <a shape="rect" class="external-link" href="http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/jms/listener/DefaultMessageListenerContainer.html" rel="nofollow">Spring documentation</a> and <a shape="rect" href="#BookComponentAppendix-transactionCacheLevels">Transactions Cache Levels</a> for more information. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>cacheLevel</tt> </td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" class="confluenceTd"> S
 ets the cache level by ID for the underlying JMS resources. See <tt>cacheLevelName</tt> option for more details. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>consumerType</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>Default</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The consumer type to use, which can be one of: <tt>Simple</tt> or <tt>Default</tt>. The consumer type determines which Spring JMS listener to use. <tt>Default</tt> will use <tt>org.springframework.jms.listener.DefaultMessageListenerContainer</tt>, <tt>Simple</tt> will use <tt>org.springframework.jms.listener.SimpleMessageListenerContainer</tt>. This option was temporary removed in Camel 2.7 and 2.8. But has been added back from Camel 2.9 onwards. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>connectionFactory</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd
 "> The default JMS connection factory to use for the <tt>listenerConnectionFactory</tt> and <tt>templateConnectionFactory</tt>, if neither is specified. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>deliveryPersistent</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether persistent delivery is used by default. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>destination</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies the JMS Destination object to use on this endpoint. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>destinationName</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies the JMS destination name to use on this endpoint. </td></tr><tr><td 
 colspan="1" rowspan="1" class="confluenceTd"> <tt>destinationResolver</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> A pluggable <tt>org.springframework.jms.support.destination.DestinationResolver</tt> that allows you to use your own resolver (for example, to lookup the real destination in a JNDI registry). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>disableTimeToLive</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.8:</b> Use this option to force disabling time to live. For example when you do request/reply over JMS, then Camel will by default use the <tt>requestTimeout</tt> value as time to live on the message being sent. The problem is that the sender and receiver systems have to have their clocks synchronized, so they are in sync. This is not always so easy to archive. So you 
 can use <tt>disableTimeToLive=true</tt> to <b>not</b> set a time to live value on the sent message. Then the message will not expire on the receiver system. See below in section <em>About time to live</em> for more details. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>eagerLoadingOfProperties</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Enables eager loading of JMS properties as soon as a message is received, which is generally inefficient, because the JMS properties might not be required. But this feature can sometimes catch early any issues with the underlying JMS provider and the use of JMS properties. This feature can also be used for testing purposes, to ensure JMS properties can be understood and handled correctly. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>exceptionListener</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>
 null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies the JMS Exception Listener that is to be notified of any underlying JMS exceptions. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>errorHandler</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.8.2, 2.9:</b> Specifies a <tt>org.springframework.util.ErrorHandler</tt> to be invoked in case of any uncaught exceptions thrown while processing a <tt>Message</tt>. By default these exceptions will be logged at the WARN level, if no <tt>errorHandler</tt> has been configured. From <b>Camel 2.9.1:</b> onwards you can configure logging level and whether stack traces should be logged using the below two options. This makes it much easier to configure, than having to code a custom <tt>errorHandler</tt>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>errorHandlerLoggingLevel</tt> </td><
 td colspan="1" rowspan="1" class="confluenceTd"> <tt>WARN</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.1:</b> Allows to configure the default <tt>errorHandler</tt> logging level for logging uncaught exceptions. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>errorHandlerLogStackTrace</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.1:</b> Allows to control whether stacktraces should be logged or not, by the default <tt>errorHandler</tt>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>explicitQosEnabled</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Set if the <tt>deliveryMode</tt>, <tt>priority</tt> or <tt>timeToLive</tt> qualities of service should be used when sending messages. This option is based on Spring's <tt>JmsTemplate</tt>. 
 The <tt>deliveryMode</tt>, <tt>priority</tt> and <tt>timeToLive</tt> options are applied to the current endpoint. This contrasts with the <tt>preserveMessageQos</tt> option, which operates at message granularity, reading QoS properties exclusively from the Camel In message headers. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>exposeListenerSession</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether the listener session should be exposed when consuming messages. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>forceSendOriginalMessage</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.7:</b> When using <tt>mapJmsMessage=false</tt> Camel will create a new JMS message to send to a new JMS destination if you touch the headers (get or set) during the route.
  Set this option to <tt>true</tt> to force Camel to send the original JMS message that was received. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>idleTaskExecutionLimit</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>1</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies the limit for idle executions of a receive task, not having received any message within its execution. If this limit is reached, the task will shut down and leave receiving to other executing tasks (in the case of dynamic scheduling; see the <tt>maxConcurrentConsumers</tt> setting). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>idleConsumerLimit</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>1</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.8.2, 2.9:</b> Specify the limit for the number of consumers that are allowed to be idle at any given time. </td></tr><tr><td colspan="1" rowspan="1" class
 ="confluenceTd"> <tt>jmsMessageType</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Allows you to force the use of a specific <tt>javax.jms.Message</tt> implementation for sending JMS messages. Possible values are: <tt>Bytes</tt>, <tt>Map</tt>, <tt>Object</tt>, <tt>Stream</tt>, <tt>Text</tt>. By default, Camel would determine which JMS message type to use from the In body type. This option allows you to specify it. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>jmsKeyFormatStrategy</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>default</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Pluggable strategy for encoding and decoding JMS keys so they can be compliant with the JMS specification. Camel provides two implementations out of the box: <tt>default</tt> and <tt>passthrough</tt>. The <tt>default</tt> strategy will safely marshal dots and hyphens 
 (<tt>.</tt> and <tt>-</tt>). The <tt>passthrough</tt> strategy leaves the key as is. Can be used for JMS brokers which do not care whether JMS header keys contain illegal characters. You can provide your own implementation of the <tt>org.apache.camel.component.jms.JmsKeyFormatStrategy</tt> and refer to it using the <tt>#</tt> notation. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>jmsOperations</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Allows you to use your own implementation of the <tt>org.springframework.jms.core.JmsOperations</tt> interface. Camel uses <tt>JmsTemplate</tt> as default. Can be used for testing purpose, but not used much as stated in the spring API docs. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>lazyCreateTransactionManager</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan
 ="1" class="confluenceTd"> If <tt>true</tt>, Camel will create a <tt>JmsTransactionManager</tt>, if there is no <tt>transactionManager</tt> injected when option <tt>transacted=true</tt>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>listenerConnectionFactory</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The JMS connection factory used for consuming messages. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>mapJmsMessage</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether Camel should auto map the received JMS message to an appropiate payload type, such as <tt>javax.jms.TextMessage</tt> to a <tt>String</tt> etc. See section about how mapping works below for more details. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>maximumBrowseSize</tt> 
 </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>-1</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Limits the number of messages fetched at most, when browsing endpoints using <a shape="rect" href="browse.html" title="Browse">Browse</a> or JMX API. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>messageConverter</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> To use a custom Spring <tt>org.springframework.jms.support.converter.MessageConverter</tt> so you can be 100% in control how to map to/from a <tt>javax.jms.Message</tt>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>messageIdEnabled</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> When sending, specifies whether message IDs should be added. </td></tr><tr><td colspan="1" rowspan="1" class="confluenc
 eTd"> <tt>messageTimestampEnabled</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether timestamps should be enabled by default on sending messages. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>password</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The password for the connector factory. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>priority</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>4</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Values greater than 1 specify the message priority when sending (where 0 is the lowest priority and 9 is the highest). The <tt>explicitQosEnabled</tt> option <b>must</b> also be enabled in order for this option to have any effect. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt
 >pubSubNoLocal</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether to inhibit the delivery of messages published by its own connection. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>receiveTimeout</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <em>None</em> </td><td colspan="1" rowspan="1" class="confluenceTd"> The timeout for receiving messages (in milliseconds). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>recoveryInterval</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>5000</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies the interval between recovery attempts, i.e. when a connection is being refreshed, in milliseconds. The default is 5000 ms, that is, 5 seconds. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>replyToCacheLevelName</tt> </td><td colspan="1" rowspan
 ="1" class="confluenceTd"> CACHE_CONSUMER </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.1:</b> Sets the cache level by name for the reply consumer when doing request/reply over JMS. This option only applies when using fixed reply queues (not temporary). Camel will by default use: <tt>CACHE_CONSUMER</tt> for exclusive or shared w/ <tt>replyToSelectorName</tt>. And <tt>CACHE_SESSION</tt> for shared without <tt>replyToSelectorName</tt>. Some JMS brokers such as IBM WebSphere may require to set the <tt>replyToCacheLevelName=CACHE_NONE</tt> to work. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>replyToDestinationSelectorName</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Sets the JMS Selector using the fixed name to be used so you can filter out your own replies from the others when using a shared queue (that is, if you are not using a temporary reply queu
 e). </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>replyToDeliveryPersistent</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether to use persistent delivery by default for replies. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>requestTimeoutCheckerInterval</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>1000</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.9.2:</b> Configures how often Camel should check for timed out <a shape="rect" href="exchange.html" title="Exchange">Exchange</a>s when doing request/reply over JMS.By default Camel checks once per second. But if you must react faster when a timeout occurs, then you can lower this interval, to check more frequently. The timeout is determined by the option <em>requestTimeout</em>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>subs
 criptionDurable</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>@deprecated:</b> Enabled by default, if you specify a <tt>durableSubscriberName</tt> and a <tt>clientId</tt>. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>taskExecutor</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Allows you to specify a custom task executor for consuming messages. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>taskExecutorSpring2</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.6:</b> To use when using Spring 2.x with Camel. Allows you to specify a custom task executor for consuming messages. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>templateConnectionFactory</tt> </td><t
 d colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The JMS connection factory used for sending messages. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>transactedInOut</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>@deprecated:</b> Specifies whether to use transacted mode for sending messages using the InOut <a shape="rect" href="exchange-pattern.html" title="Exchange Pattern">Exchange Pattern</a>. Applies only to producer endpoints. See section <a shape="rect" href="#BookComponentAppendix-transactedConsumption">Enabling Transacted Consumption</a> for more details. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>transactionManager</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The Spring transaction manag
 er to use. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>transactionName</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>"JmsConsumer[destinationName]"</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The name of the transaction to use. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>transactionTimeout</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The timeout value of the transaction, if using transacted mode. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>transferException</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> If enabled and you are using <a shape="rect" href="request-reply.html" title="Request Reply">Request Reply</a> messaging (InOut) and an <a shape="rect" href="exchange.html" title="Exchange">Exchange</a> fail
 ed on the consumer side, then the caused <tt>Exception</tt> will be send back in response as a <tt>javax.jms.ObjectMessage</tt>. If the client is Camel, the returned <tt>Exception</tt> is rethrown. This allows you to use Camel <a shape="rect" href="jms.html" title="JMS">JMS</a> as a bridge in your routing - for example, using persistent queues to enable robust routing. Notice that if you also have <b>transferExchange</b> enabled, this option takes precedence. The caught exception is required to be serializable. The original <tt>Exception</tt> on the consumer side can be wrapped in an outer exception such as <tt>org.apache.camel.RuntimeCamelException</tt> when returned to the producer. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>transferExchange</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> You can transfer the exchange over the wire instead of just the body and headers
 . The following fields are transferred: In body, Out body, Fault body, In headers, Out headers, Fault headers, exchange properties, exchange exception. This requires that the objects are serializable. Camel will exclude any non-serializable objects and log it at <tt>WARN</tt> level. You <b>must</b> enable this option on both the producer and consumer side, so Camel knows the payloads is an Exchange and not a regular payload. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>username</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The username for the connector factory. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useMessageIDAsCorrelationID</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> Specifies whether <tt>JMSMessageID</tt> should always be used as <tt>JMSCorrelationID</t
 t> for <b>InOut</b> messages. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>useVersion102</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>@deprecated (removed from Camel 2.5 onwards):</b> Specifies whether the old JMS API should be used. </td></tr></tbody></table>
 </div>
 </div>
 
@@ -9026,7 +9031,8 @@ In Camel 2.8 onwards, the default settin
 <p>For example, in the route below we use a custom message converter when sending a message to the JMS order queue:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">  from(<span class="code-quote">"file:<span class="code-comment">//inbox/order"</span>).to(<span class="code-quote">"jms:queue:order?messageConverter=#myMessageConverter"</span>);</span>
+<pre class="code-java">
+  from(<span class="code-quote">"file:<span class="code-comment">//inbox/order"</span>).to(<span class="code-quote">"jms:queue:order?messageConverter=#myMessageConverter"</span>);</span>
 </pre>
 </div></div>
 
@@ -9037,13 +9043,15 @@ In Camel 2.8 onwards, the default settin
 <p>You can use the <b>jmsMessageType</b> option on the endpoint URL to force a specific message type for all messages.<br clear="none">
 In the route below, we poll files from a folder and send them as <tt>javax.jms.TextMessage</tt> as we have forced the JMS producer endpoint to use text messages:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">  from(<span class="code-quote">"file:<span class="code-comment">//inbox/order"</span>).to(<span class="code-quote">"jms:queue:order?jmsMessageType=Text"</span>);</span>
+<pre class="code-java">
+  from(<span class="code-quote">"file:<span class="code-comment">//inbox/order"</span>).to(<span class="code-quote">"jms:queue:order?jmsMessageType=Text"</span>);</span>
 </pre>
 </div></div>
 
 <p>You can also specify the message type to use for each messabe by setting the header with the key <tt>CamelJmsMessageType</tt>. For example:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">  from(<span class="code-quote">"file:<span class="code-comment">//inbox/order"</span>).setHeader(<span class="code-quote">"CamelJmsMessageType"</span>, JmsMessageType.Text).to(<span class="code-quote">"jms:queue:order"</span>);</span>
+<pre class="code-java">
+  from(<span class="code-quote">"file:<span class="code-comment">//inbox/order"</span>).setHeader(<span class="code-quote">"CamelJmsMessageType"</span>, JmsMessageType.Text).to(<span class="code-quote">"jms:queue:order"</span>);</span>
 </pre>
 </div></div>
 
@@ -9065,7 +9073,8 @@ In the route below, we poll files from a
 
 <p>Camel will log with category <tt>org.apache.camel.component.jms.JmsBinding</tt> at <b>DEBUG</b> level if it drops a given header value. For example:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">2008-07-09 06:43:04,046 [main           ] DEBUG JmsBinding
+<pre class="code-java">
+2008-07-09 06:43:04,046 [main           ] DEBUG JmsBinding
   - Ignoring non primitive header: order of class: org.apache.camel.component.jms.issues.DummyOrder with value: DummyOrder{orderId=333, itemId=4444, quantity=2}
 </pre>
 </div></div>
@@ -9118,7 +9127,8 @@ In the route below, we poll files from a
 <p>If you send a message to a JMS destination in the middle of your route you can specify the exchange pattern to use, see more at <a shape="rect" href="request-reply.html" title="Request Reply">Request Reply</a>.<br clear="none">
 This is useful if you want to send an <tt>InOnly</tt> message to a JMS topic:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">from(<span class="code-quote">"activemq:queue:in"</span>)
+<pre class="code-java">
+from(<span class="code-quote">"activemq:queue:in"</span>)
    .to(<span class="code-quote">"bean:validateOrder"</span>)
    .to(ExchangePattern.InOnly, <span class="code-quote">"activemq:topic:order"</span>)
    .to(<span class="code-quote">"bean:handleOrder"</span>);
@@ -9138,7 +9148,8 @@ This is useful if you want to send an <t
 <p>For example, the following route shows how you can compute a destination at run time and use it to override the destination appearing in the JMS URL:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">from(<span class="code-quote">"file:<span class="code-comment">//inbox"</span>)
+<pre class="code-java">
+from(<span class="code-quote">"file:<span class="code-comment">//inbox"</span>)
 </span>  .to(<span class="code-quote">"bean:computeDestination"</span>)
   .to(<span class="code-quote">"activemq:queue:dummy"</span>);
 </pre>
@@ -9149,7 +9160,8 @@ This is useful if you want to send an <t
 <p>In the <tt>computeDestination</tt> bean, specify the real destination by setting the <tt>CamelJmsDestinationName</tt> header as follows:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"><span class="code-keyword">public</span> void setJmsHeader(Exchange exchange) {
+<pre class="code-java">
+<span class="code-keyword">public</span> void setJmsHeader(Exchange exchange) {
    <span class="code-object">String</span> id = ....
    exchange.getIn().setHeader(<span class="code-quote">"CamelJmsDestinationName"</span>, <span class="code-quote">"order:"</span> + id");
 }
@@ -9192,7 +9204,8 @@ This is useful if you want to send an <t
 <p>If you are using a J2EE container, you might need to look up JNDI to find the JMS <tt>ConnectionFactory</tt> rather than use the usual <tt>&lt;bean&gt;</tt> mechanism in Spring. You can do this using Spring's factory bean or the new Spring XML namespace. For example:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml"><span class="code-tag">&lt;bean id=<span class="code-quote">"weblogic"</span> class=<span class="code-quote">"org.apache.camel.component.jms.JmsComponent"</span>&gt;</span>
+<pre class="code-xml">
+<span class="code-tag">&lt;bean id=<span class="code-quote">"weblogic"</span> class=<span class="code-quote">"org.apache.camel.component.jms.JmsComponent"</span>&gt;</span>
   <span class="code-tag">&lt;property name=<span class="code-quote">"connectionFactory"</span> ref=<span class="code-quote">"myConnectionFactory"</span>/&gt;</span>
 <span class="code-tag">&lt;/bean&gt;</span>
 
@@ -9208,7 +9221,8 @@ This is useful if you want to send an <t
 <p>A common requirement with JMS is to consume messages concurrently in multiple threads in order to make an application more responsive. You can set the <tt>concurrentConsumers</tt> option to specify the number of threads servicing the JMS endpoint, as follows:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">from(<span class="code-quote">"jms:SomeQueue?concurrentConsumers=20"</span>).
+<pre class="code-java">
+from(<span class="code-quote">"jms:SomeQueue?concurrentConsumers=20"</span>).
   bean(MyClass.class);
 </pre>
 </div></div>
@@ -9236,7 +9250,8 @@ This consumer is a Spring <tt>DefaultMes
 That means replies will be processed in sequence as there are only 1 thread to process the replies. If you want to process replies faster, then we need to use concurrency. But <b>not</b> using the <tt>concurrentConsumer</tt> option. We should use the <tt>threads</tt> from the Camel DSL instead, as shown in the route below:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">from(xxx)
+<pre class="code-java">
+from(xxx)
 .inOut().to(<span class="code-quote">"activemq:queue:foo"</span>)
 .threads(5)
 .to(yyy)
@@ -9250,7 +9265,8 @@ That means replies will be processed in 
 
 <p>If you use a fixed reply queue when doing <a shape="rect" href="request-reply.html" title="Request Reply">Request Reply</a> over JMS as shown in the example below, then pay attention.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">from(xxx)
+<pre class="code-java">
+from(xxx)
 .inOut().to(<span class="code-quote">"activemq:queue:foo?replyTo=bar"</span>)
 .to(yyy)
 </pre>
@@ -9258,7 +9274,8 @@ That means replies will be processed in 
 
 <p>In this example the fixed reply queue named "bar" is used. By default Camel assumes the queue is shared when using fixed reply queues, and therefore it uses a <tt>JMSSelector</tt> to only pickup the expected reply messages (eg based on the <tt>JMSCorrelationID</tt>). See next section for exclusive fixed reply queues. That means its not as fast as temporary queues. You can speedup how often Camel will pull for reply messages using the <tt>receiveTimeout</tt> option. By default its 1000 millis. So to make it faster you can set it to 250 millis to pull 4 times per second as shown:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">from(xxx)
+<pre class="code-java">
+from(xxx)
 .inOut().to(<span class="code-quote">"activemq:queue:foo?replyTo=bar&amp;receiveTimeout=250"</span>)
 .to(yyy)
 </pre>
@@ -9274,7 +9291,8 @@ It is generally recommended to use tempo
 <p>In the previous example, Camel would anticipate the fixed reply queue named "bar" was shared, and thus it uses a <tt>JMSSelector</tt> to only consume reply messages which it expects. However there is a drawback doing this as JMS selectos is slower. Also the consumer on the reply queue is slower to update with new JMS selector ids. In fact it only updates when the <tt>receiveTimeout</tt> option times out, which by default is 1 second. So in theory the reply messages could take up till about 1 sec to be detected. On the other hand if the fixed reply queue is exclusive to the Camel reply consumer, then we can avoid using the JMS selectors, and thus be more performant. In fact as fast as using temporary queues. So in <b>Camel 2.9</b> onwards we introduced the <tt>ReplyToType</tt> option which you can configure to <tt>Exclusive</tt><br clear="none">
 to tell Camel that the reply queue is exclusive as shown in the example below:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">from(xxx)
+<pre class="code-java">
+from(xxx)
 .inOut().to(<span class="code-quote">"activemq:queue:foo?replyTo=bar&amp;replyToType=Exclusive"</span>)
 .to(yyy)
 </pre>
@@ -9282,7 +9300,8 @@ to tell Camel that the reply queue is ex
 
 <p>Mind that the queue must be exclusive to each and every endpoint. So if you have two routes, then they each need an unique reply queue as shown in the next example:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">from(xxx)
+<pre class="code-java">
+from(xxx)
 .inOut().to(<span class="code-quote">"activemq:queue:foo?replyTo=bar&amp;replyToType=Exclusive"</span>)
 .to(yyy)
 
@@ -9343,13 +9362,15 @@ from(aaa)
 
 <p>When using Camel as a JMS listener, it sets an Exchange property with the value of the ReplyTo <tt>javax.jms.Destination</tt> object, having the key <tt>ReplyTo</tt>. You can obtain this <tt>Destination</tt> as follows:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">Destination replyDestination = exchange.getIn().getHeader(JmsConstants.JMS_REPLY_DESTINATION, Destination.class);
+<pre class="code-java">
+Destination replyDestination = exchange.getIn().getHeader(JmsConstants.JMS_REPLY_DESTINATION, Destination.class);
 </pre>
 </div></div>
 
 <p>And then later use it to send a reply using regular JMS or Camel.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">    <span class="code-comment">// we need to pass in the JMS component, and in <span class="code-keyword">this</span> sample we use ActiveMQ
+<pre class="code-java">
+    <span class="code-comment">// we need to pass in the JMS component, and in <span class="code-keyword">this</span> sample we use ActiveMQ
 </span>    JmsEndpoint endpoint = JmsEndpoint.newInstance(replyDestination, activeMQComponent);
     <span class="code-comment">// now we have the endpoint we can use regular Camel API to send a message to it
 </span>    template.sendBody(endpoint, <span class="code-quote">"Here is the late reply."</span>);
@@ -9359,7 +9380,8 @@ from(aaa)
 <p>A different solution to sending a reply is to provide the <tt>replyDestination</tt> object in the same Exchange property when sending. Camel will then pick up this property and use it for the real destination. The endpoint URI must include a dummy destination, however. For example:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">    <span class="code-comment">// we pretend to send it to some non existing dummy queue
+<pre class="code-java">
+    <span class="code-comment">// we pretend to send it to some non existing dummy queue
 </span>    template.send("activemq:queue:dummy, <span class="code-keyword">new</span> Processor() {
         <span class="code-keyword">public</span> void process(Exchange exchange) <span class="code-keyword">throws</span> Exception {
             <span class="code-comment">// and here we override the destination with the ReplyTo destination object so the message is sent to there instead of dummy
@@ -9390,14 +9412,16 @@ from(aaa)
 <p>In the following sample we configure a route that receives JMS messages and routes the message to a POJO:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">   from(<span class="code-quote">"jms:queue:foo"</span>).
+<pre class="code-java">
+   from(<span class="code-quote">"jms:queue:foo"</span>).
      to(<span class="code-quote">"bean:myBusinessLogic"</span>);
 </pre>
 </div></div>
 
 <p>You can of course use any of the EIP patterns so the route can be context based. For example, here's how to filter an order topic for the big spenders:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">from(<span class="code-quote">"jms:topic:OrdersTopic"</span>).
+<pre class="code-java">
+from(<span class="code-quote">"jms:topic:OrdersTopic"</span>).
   filter().method(<span class="code-quote">"myBean"</span>, <span class="code-quote">"isGoldCustomer"</span>).
     to(<span class="code-quote">"jms:queue:BigSpendersQueue"</span>);
 </pre>
@@ -9408,7 +9432,8 @@ from(aaa)
 <p>In the sample below we poll a file folder and send the file content to a JMS topic. As we want the content of the file as a <tt>TextMessage</tt> instead of a <tt>BytesMessage</tt>, we need to convert the body to a <tt>String</tt>:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">from(<span class="code-quote">"file:<span class="code-comment">//orders"</span>).
+<pre class="code-java">
+from(<span class="code-quote">"file:<span class="code-comment">//orders"</span>).
 </span>  convertBodyTo(<span class="code-object">String</span>.class).
   to(<span class="code-quote">"jms:topic:OrdersTopic"</span>);
 </pre>
@@ -9423,7 +9448,8 @@ from(aaa)
 <p>The preceding examples use the Java DSL. Camel also supports Spring XML DSL. Here is the big spender sample using Spring DSL:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-xml"><span class="code-tag">&lt;route&gt;</span>
+<pre class="code-xml">
+<span class="code-tag">&lt;route&gt;</span>
   <span class="code-tag">&lt;from uri=<span class="code-quote">"jms:topic:OrdersTopic"</span>/&gt;</span>
   <span class="code-tag">&lt;filter&gt;</span>
     <span class="code-tag">&lt;method bean=<span class="code-quote">"myBean"</span> method=<span class="code-quote">"isGoldCustomer"</span>/&gt;</span>
@@ -9442,14 +9468,16 @@ from(aaa)
 <p>Normally, when using <a shape="rect" href="jms.html" title="JMS">JMS</a> as the transport, it only transfers the body and headers as the payload. If you want to use <a shape="rect" href="jms.html" title="JMS">JMS</a> with a <a shape="rect" href="dead-letter-channel.html" title="Dead Letter Channel">Dead Letter Channel</a>, using a JMS queue as the Dead Letter Queue, then normally the caused Exception is not stored in the JMS message. You can, however, use the <b>transferExchange</b> option on the JMS dead letter queue to instruct Camel to store the entire <a shape="rect" href="exchange.html" title="Exchange">Exchange</a> in the queue as a <tt>javax.jms.ObjectMessage</tt> that holds a <tt>org.apache.camel.impl.DefaultExchangeHolder</tt>. This allows you to consume from the Dead Letter Queue and retrieve the caused exception from the Exchange property with the key <tt>Exchange.EXCEPTION_CAUGHT</tt>. The demo below illustrates this:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"><span class="code-comment">// setup error handler to use JMS as queue and store the entire Exchange
+<pre class="code-java">
+<span class="code-comment">// setup error handler to use JMS as queue and store the entire Exchange
 </span>errorHandler(deadLetterChannel(<span class="code-quote">"jms:queue:dead?transferExchange=<span class="code-keyword">true</span>"</span>));
 </pre>
 </div></div>
 
 <p>Then you can consume from the JMS queue and analyze the problem:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">from(<span class="code-quote">"jms:queue:dead"</span>).to(<span class="code-quote">"bean:myErrorAnalyzer"</span>);
+<pre class="code-java">
+from(<span class="code-quote">"jms:queue:dead"</span>).to(<span class="code-quote">"bean:myErrorAnalyzer"</span>);
 
 <span class="code-comment">// and in our bean
 </span><span class="code-object">String</span> body = exchange.getIn().getBody();
@@ -9463,7 +9491,8 @@ Exception cause = exchange.getProperty(E
 
 <p>You can use JMS to store the cause error message or to store a custom body, which you can initialize yourself. The following example uses the <a shape="rect" href="message-translator.html" title="Message Translator">Message Translator</a> EIP to do a transformation on the failed exchange before it is moved to the <a shape="rect" href="jms.html" title="JMS">JMS</a> dead letter queue:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java"><span class="code-comment">// we sent it to a seda dead queue first
+<pre class="code-java">
+<span class="code-comment">// we sent it to a seda dead queue first
 </span>errorHandler(deadLetterChannel(<span class="code-quote">"seda:dead"</span>));
 
 <span class="code-comment">// and on the seda dead queue we can <span class="code-keyword">do</span> the custom transformation before its sent to the JMS queue
@@ -9478,7 +9507,8 @@ Exception cause = exchange.getProperty(E
 
 <p>For example to send an InOnly message to the foo queue, but with a JMSReplyTo with bar queue you can do as follows:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">        template.send(<span class="code-quote">"activemq:queue:foo?preserveMessageQos=<span class="code-keyword">true</span>"</span>, <span class="code-keyword">new</span> Processor() {
+<pre class="code-java">
+        template.send(<span class="code-quote">"activemq:queue:foo?preserveMessageQos=<span class="code-keyword">true</span>"</span>, <span class="code-keyword">new</span> Processor() {
             <span class="code-keyword">public</span> void process(Exchange exchange) <span class="code-keyword">throws</span> Exception {
                 exchange.getIn().setBody(<span class="code-quote">"World"</span>);
                 exchange.getIn().setHeader(<span class="code-quote">"JMSReplyTo"</span>, <span class="code-quote">"bar"</span>);
@@ -9494,7 +9524,8 @@ Exception cause = exchange.getProperty(E
 <p>Some JMS providers, like IBM's WebSphere MQ need options to be set on the JMS destination. For example, you may need to specify the targetClient option. Since targetClient is a WebSphere MQ option and not a Camel URI option, you need to set that on the JMS destination name like so:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">...
+<pre class="code-java">
+...
 .setHeader(<span class="code-quote">"CamelJmsDestinationName"</span>, constant(<span class="code-quote">"queue:<span class="code-comment">///MY_QUEUE?targetClient=1"</span>))
 </span>.to(<span class="code-quote">"wmq:queue:MY_QUEUE?useMessageIDAsCorrelationID=<span class="code-keyword">true</span>"</span>);
 </pre>
@@ -9508,7 +9539,8 @@ Exception cause = exchange.getProperty(E
 <p>A workaround is to use a custom DestinationResolver:</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
-<pre class="code-java">JmsComponent wmq = <span class="code-keyword">new</span> JmsComponent(connectionFactory);
+<pre class="code-java">
+JmsComponent wmq = <span class="code-keyword">new</span> JmsComponent(connectionFactory);
 
 wmq.setDestinationResolver(<span class="code-keyword">new</span> DestinationResolver(){
     <span class="code-keyword">public</span> Destination resolveDestinationName(Session session, <span class="code-object">String</span> destinationName, <span class="code-object">boolean</span> pubSubDomain) <span class="code-keyword">throws</span> JMSException {