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 2016/10/28 17:20:53 UTC

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

Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Fri Oct 28 17:20:53 2016
@@ -3966,11 +3966,11 @@ The tutorial has been designed in two pa
 While not actual tutorials you might find working through the source of the various <a shape="rect" href="examples.html">Examples</a> useful.</li></ul>
 
 <h2 id="BookInOnePage-TutorialonSpringRemotingwithJMS">Tutorial on Spring Remoting with JMS</h2><p>&#160;</p><div class="confluence-information-macro confluence-information-macro-information"><p class="title">Thanks</p><span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>This tutorial was kindly donated to Apache Camel by Martin Gilday.</p></div></div><h2 id="BookInOnePage-Preface">Preface</h2><p>This tutorial aims to guide the reader through the stages of creating a project which uses Camel to facilitate the routing of messages from a JMS queue to a <a shape="rect" class="external-link" href="http://www.springramework.org" rel="nofollow">Spring</a> service. The route works in a synchronous fashion returning a response to the client.</p><p><style type="text/css">/*<![CDATA[*/
-div.rbtoc1477588888694 {padding: 0px;}
-div.rbtoc1477588888694 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1477588888694 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1477675130284 {padding: 0px;}
+div.rbtoc1477675130284 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1477675130284 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1477588888694">
+/*]]>*/</style></p><div class="toc-macro rbtoc1477675130284">
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-TutorialonSpringRemotingwithJMS">Tutorial on Spring Remoting with JMS</a></li><li><a shape="rect" href="#BookInOnePage-Preface">Preface</a></li><li><a shape="rect" href="#BookInOnePage-Prerequisites">Prerequisites</a></li><li><a shape="rect" href="#BookInOnePage-Distribution">Distribution</a></li><li><a shape="rect" href="#BookInOnePage-About">About</a></li><li><a shape="rect" href="#BookInOnePage-CreatetheCamelProject">Create the Camel Project</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-UpdatethePOMwithDependencies">Update the POM with Dependencies</a></li></ul>
 </li><li><a shape="rect" href="#BookInOnePage-WritingtheServer">Writing the Server</a>
@@ -6085,11 +6085,11 @@ So we completed the last piece in the pi
 <p>This example has been removed from <strong>Camel 2.9</strong> onwards. Apache Axis 1.4 is a very old and unsupported framework. We encourage users to use <a shape="rect" href="cxf.html">CXF</a> instead of Axis.</p></div></div>
 
 <style type="text/css">/*<![CDATA[*/
-div.rbtoc1477588888780 {padding: 0px;}
-div.rbtoc1477588888780 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1477588888780 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1477675131049 {padding: 0px;}
+div.rbtoc1477675131049 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1477675131049 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style><div class="toc-macro rbtoc1477588888780">
+/*]]>*/</style><div class="toc-macro rbtoc1477675131049">
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-TutorialusingAxis1.4withApacheCamel">Tutorial using Axis 1.4 with Apache Camel</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-Prerequisites">Prerequisites</a></li><li><a shape="rect" href="#BookInOnePage-Distribution">Distribution</a></li><li><a shape="rect" href="#BookInOnePage-Introduction">Introduction</a></li><li><a shape="rect" href="#BookInOnePage-SettinguptheprojecttorunAxis">Setting up the project to run Axis</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-Maven2">Maven 2</a></li><li><a shape="rect" href="#BookInOnePage-wsdl">wsdl</a></li><li><a shape="rect" href="#BookInOnePage-ConfiguringAxis">Configuring Axis</a></li><li><a shape="rect" href="#BookInOnePage-RunningtheExample">Running the Example</a></li></ul>
@@ -14323,8 +14323,8 @@ cometds://localhost:8443/service/mychann
  <div class="confluence-information-macro-body">
   <p>When using CXF in streaming modes (see DataFormat option), then also read about <a shape="rect" href="stream-caching.html">Stream caching</a>.</p>
  </div>
-</div><p>The <strong>cxf:</strong> component provides integration with <a shape="rect" href="http://cxf.apache.org">Apache CXF</a> for connecting to JAX-WS services hosted in CXF.</p><p><style type="text/css">/**/ div.rbtoc1477588889810 {padding: 0px;} div.rbtoc1477588889810 ul {list-style: disc;margin-left: 0px;} div.rbtoc1477588889810 li {margin-left: 0px;padding-left: 0px;} /**/</style>
- </p><div class="toc-macro rbtoc1477588889810"> 
+</div><p>The <strong>cxf:</strong> component provides integration with <a shape="rect" href="http://cxf.apache.org">Apache CXF</a> for connecting to JAX-WS services hosted in CXF.</p><p><style type="text/css">/**/ div.rbtoc1477675165031 {padding: 0px;} div.rbtoc1477675165031 ul {list-style: disc;margin-left: 0px;} div.rbtoc1477675165031 li {margin-left: 0px;padding-left: 0px;} /**/</style>
+ </p><div class="toc-macro rbtoc1477675165031"> 
   <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-CXFComponent">CXF Component</a> 
     <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-URIformat">URI format</a></li><li><a shape="rect" href="#BookInOnePage-Options">Options</a> 
       <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-Thedescriptionsofthedataformats">The descriptions of the dataformats</a> 
@@ -16756,7 +16756,7 @@ cometds://localhost:8443/service/mychann
  <div class="codeContent panelContent pdl"> 
   <script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter">&amp;lt;dependency&amp;gt; &amp;lt;groupId&amp;gt;org.apache.camel&amp;lt;/groupId&amp;gt; &amp;lt;artifactId&amp;gt;camel-jms&amp;lt;/artifactId&amp;gt; &amp;lt;version&amp;gt;x.x.x&amp;lt;/version&amp;gt; &amp;lt;!-- use the same version as your Camel core version --&amp;gt; &amp;lt;/dependency&amp;gt; </script> 
  </div>
-</div><h3 id="BookInOnePage-URIformat.34">URI format</h3><div class="code panel pdl" style="border-width: 1px;">
+</div><h3 id="BookInOnePage-URIFormat.3">URI Format</h3><div class="code panel pdl" style="border-width: 1px;">
  <div class="codeContent panelContent pdl"> 
   <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter">jms:[queue:|topic:]destinationName[?options] </script> 
  </div>
@@ -16797,7 +16797,7 @@ cometds://localhost:8443/service/mychann
    &#160; 
  </div>
  <div class="table-wrap"> 
-  <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Option</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Default Value</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>acceptMessagesWhileStopping</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies whether the consumer accept messages while it is stopping.</p><p>You may consider enabling this option, if you start and stop <a shape="rect" href="jms.html">JMS</a> routes at run-time, while there are still messages enqueued on the queue. If this option is <strong><code>false</code></strong>, and you stop the <a shape="rect" href="jms.html">JMS</a> route, then messages may be rejected, and the JMS broker would have to attempt re-deliveries, which yet again may be rejected, and eventu
 ally the message may be moved at a dead letter queue on the JMS broker. To avoid this scenario it's recommended this option be set to <strong><code>true</code></strong>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>acknowledgementModeName</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>AUTO_ACKNOWLEDGE</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The JMS acknowledgement name, which is one of: </p> 
+  <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Option</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Default Value</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>acceptMessagesWhileStopping</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies whether the consumer accept messages while it is stopping.</p><p>You may consider enabling this option, if you start and stop <a shape="rect" href="jms.html">JMS</a> routes at run-time, while there are still messages enqueued on the queue. If this option is <strong><code>false</code></strong>, and you stop the <a shape="rect" href="jms.html">JMS</a> route, then messages may be rejected, and the JMS broker would have to attempt re-deliveries, which yet again may be rejected, and eventu
 ally the message may be moved at a dead letter queue on the JMS broker. To avoid this scenario it's recommended this option be set to <strong><code>true</code></strong>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>acknowledgementModeName</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>AUTO_ACKNOWLEDGE</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The JMS acknowledgement name, which is one of:</p> 
       <ul><li><strong><code>SESSION_TRANSACTED</code></strong></li><li><strong><code>CLIENT_ACKNOWLEDGE</code></strong></li><li><strong><code>AUTO_ACKNOWLEDGE</code></strong></li><li><strong><code>DUPS_OK_ACKNOWLEDGE</code></strong>.</li></ul></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>acknowledgementMode</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-1</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>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 <strong><code>acknowledgementModeName</code></strong> instead.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>allowNullBody</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.9.3/2.10.1:</strong> Whether t
 o allow sending messages with no body. If this option is <code>false</code> and the message body is null, then an <strong><code>JMSException</code></strong> is thrown.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>allowReplyManagerQuickStop</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Whether the&#160;<strong><code>DefaultMessageListenerContainer</code></strong> used in the reply managers for request-reply messaging allow the&#160;<strong><code>DefaultMessageListenerContainer.runningAllowed</code></strong> flag to quick stop in case link&#160;<strong><code>JmsConfigurationisAcceptMessagesWhileStopping()</code></strong> is enabled and CamelContext is currently being stopped. This quick stop ability is enabled by default in the regular JMS consumers but to enable for reply managers you must enable this flag.</p></td></tr><tr><td colspan="1" rowspan="1" clas
 s="confluenceTd"><p><code>alwaysCopyMessage</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>If <strong><code>true</code></strong>, 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 <strong><code>replyToDestinationSelectorName</code></strong> is set.</p><p>Camel will set the <strong><code>alwaysCopyMessage=true</code></strong>, if a <strong><code>replyToDestinationSelectorName</code></strong> is set.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>asyncConsumer</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.9:</strong> Whether the <strong><code>JmsConsumer</code></strong> processes the <a shape="rect" href="exchange.html">Exchange<
 /a> <a shape="rect" href="asynchronous-routing-engine.html">asynchronously</a>. If enabled then the <strong><code>JmsConsumer</code></strong> 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">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">Exchange</a> is fully processed before the <strong><code>JmsConsumer</code></strong> will pickup the next message from the JMS queue.</p><p><strong>Note</strong>: if <strong><code>transacted</code></strong> has been enabled, then <strong><code>asyncConsumer=true</code></strong> does not run asynchronously, as transactions must be executed synchronously (Camel 3.0 may support asynchronous transactions).</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>asyncStartListener</code><
 /p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong> Whether to startup the <strong><code>JmsConsumer</code></strong> message listener asynchronously, when starting a route. For example if a <strong><code>JmsConsumer</code></strong> 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 <code>true</code>, you will let routes startup, while the <strong><code>JmsConsumer</code></strong> 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 <code>WARN</code> level, and the consumer will not be able to receive messages. You can then restart the route to retry.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluen
 ceTd"><p><code>asyncStopListener</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong> Whether to stop the <strong><code>JmsConsumer</code></strong> message listener asynchronously, when stopping a route.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>autoStartup</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies whether the consumer container should auto-startup.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>cacheLevel</code></p></td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" class="confluenceTd"><p>Sets the cache level by ID for the underlying JMS resources. See&#160;<strong><code>cacheLevelName</code></strong> option for more details.</p></td></tr><tr><td col
 span="1" rowspan="1" class="confluenceTd"><p><code>cacheLevelName</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"> 
       <ul><li><p><code>CACHE_AUTO</code>&#160;(Camel &gt;= 2.8.0)<code> <br clear="none"></code></p></li><li><p><code>CACHE_CONSUMER </code>(Camel &lt;= 2.7.1)</p></li></ul></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Sets the cache level by name for the underlying JMS resources. Valid values are:</p> 
       <ul><li><strong><code><strong><code>CACHE_NONE</code></strong></code></strong></li><li><strong><code>CACHE_CONNECTION</code></strong></li><li><strong><code>CACHE_SESSION</code></strong></li><li><strong><code>CACHE_CONSUMER</code></strong></li><li><strong><code>CACHE_AUTO</code></strong></li></ul><p>From <strong>Camel 2.8</strong>: the default is <strong><code>CACHE_AUTO</code></strong>.</p><p>For <strong>Camel 2.7.1</strong> and older the default is <strong><code>CACHE_CONSUMER</code></strong>.</p><p>See the <a shape="rect" class="external-link" href="https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/jms/listener/DefaultMessageListenerContainer.html" rel="nofollow">Spring documentation</a> and <a shape="rect" href="#BookInOnePage-transactionCacheLevels">Transactions Cache Levels</a> for more information.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>connectionFactory</code></p></td><td colspan="1" rowspan="1" class="conflue
 nceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The default JMS connection factory to use for the&#160;<strong><code>listenerConnectionFactory</code></strong> and <strong><code>templateConnectionFactory</code></strong>, if neither is specified.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>consumerType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Default</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The Spring JMS listener type to use. A valid value is one of: <strong><code>Simple</code>, <code>Default</code></strong> or <strong><code>Custom</code></strong>.</p> 
@@ -16805,8 +16805,8 @@ cometds://localhost:8443/service/mychann
        <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p><code>consumerType</code></p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Spring JMS Listener Type</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Default</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong><code>org.springframework.jms.listener.DefaultMessageListenerContainer</code></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Simple</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong><code>org.springframework.jms.listener.SimpleMessageListenerContainer</code></strong></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Custom</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>From <strong>Camel 2.10.2</strong>: The <strong><code>MessageListenerContainerFactory</code></strong> defined by the <strong><code>messageListenerCo
 ntainerFactoryRef</code></strong> option which will determine what <strong><code>org.springframework.jms.listener.AbstractMessageListenerContainer </code></strong>to use.</p></td></tr></tbody></table> 
       </div><p>This option was temporarily removed in Camel 2.7 and 2.8 but was re-added in Camel 2.9.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>defaultTaskExecutorType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>SimpleAsync</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10.4:</strong> Specifies what default&#160;<strong><code>TaskExecutor</code></strong> type to use in the <strong><code>DefaultMessageListenerContainer</code></strong>, for both consumer endpoints and the&#160;<strong><code>ReplyTo</code></strong> consumer of producer endpoints. Possible values: <strong><code>SimpleAsync</code></strong> (uses Spring's <a shape="rect" class="external-link" href="http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/core/task/SimpleAsyncTaskExecutor.html" rel="nofollow">SimpleAsyncTaskExecutor</a>) or <strong><code>ThreadPool</code></strong> (uses Spring's <a s
 hape="rect" class="external-link" href="http://static.springsource.org/spring/docs/current/javadoc-api/org/springframework/scheduling/concurrent/ThreadPoolTaskExecutor.html" rel="nofollow">ThreadPoolTaskExecutor</a> with optimal values - cached threadpool-like).</p><p>If not set, it defaults to the previous behavior, which uses a cached thread pool for consumer endpoints and&#160;<strong><code>SimpleAsync</code></strong> for reply consumers.</p><p>The use of <strong><code>ThreadPool</code></strong> is recommended to reduce "thread trash" in elastic configurations with dynamically increasing and decreasing concurrent consumers.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>deliveryMode</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.2/2.13:</strong> Specifies the delivery mode to be used. Possibles values are those defined by <strong><code>j
 avax.jms.DeliveryMode</code></strong>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>deliveryPersistent</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies whether persistent delivery is used by default.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>destination</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the JMS Destination object to use on this endpoint.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>destinationName</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the JMS destination name to use on this endpoint.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><c
 ode>destinationResolver</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>A pluggable <strong><code>org.springframework.jms.support.destination.DestinationResolver</code></strong> that allows you to use your own resolver (for example, to lookup the real destination in a JNDI registry).</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>disableTimeToLive</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.8:</strong> 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 <strong><code>requestTimeout</code></strong> 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 n
 ot always so easy to archive. So you can use <strong><code>disableTimeToLive=true</code></strong> to <strong>not</strong> set a time to live value on the sent message. Then the message will not expire on the receiver system.</p><p>See below in section <em>About time to live</em> for more details.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>eagerLoadingOfProperties</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>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.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenc
 eTd"><p><code>errorHandler</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.8.2, 2.9:</strong> Specifies a <strong><code>org.springframework.util.ErrorHandler</code></strong> to be invoked in case of any uncaught exceptions thrown while processing a <strong><code>Message</code></strong>.</p><p>By default these exceptions will be logged at the&#160;<strong><code>WARN</code></strong> level, if no <strong><code>errorHandler</code></strong> has been configured.</p><p>From <strong>Camel 2.9.1</strong>: 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 <strong><code>errorHandler</code></strong>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>errorHandlerLoggingLevel</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p
 ><code>WARN</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.9.1:</strong> Configures the logging level at which the <strong><code>errorHandler</code></strong> will log uncaught exceptions.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>errorHandlerLogStackTrace</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.9.1:</strong> Controls whether a stacktrace should be logged by the default <strong><code>errorHandler</code></strong>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>exceptionListener</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the JMS Exception Listener that is to be notified of any underlying JMS exceptions.</p></td></tr><tr><td colspan="1" rowspan="1" class="conflue
 nceTd"><p><code>explicitQosEnabled</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Set if the <strong><code>deliveryMode</code>, <code>priority</code></strong> or <strong><code>timeToLive</code></strong> qualities of service should be used when sending messages. This option is based on Spring's <strong><code>JmsTemplate</code></strong>. The <strong><code>deliveryMode</code>, <code>priority</code></strong> and <strong><code>timeToLive</code></strong> options are applied to the current endpoint. This contrasts with the <strong><code>preserveMessageQos</code></strong> option, which operates at message granularity, reading QoS properties exclusively from the Camel In message headers.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>exposeListenerSession</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" rows
 pan="1" class="confluenceTd"><p>Specifies whether the listener session should be exposed when consuming messages.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>forceSendOriginalMessage</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.7:</strong> When using <strong><code>mapJmsMessage=false</code></strong> 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 <strong><code>true</code></strong> to force Camel to send the original JMS message that was received.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>idleConsumerLimit</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>1</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.8.2</strong>, <strong>2.9</strong>: Specify the lim
 it for the number of consumers that are allowed to be idle at any given time.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>idleTaskExecutionLimit</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>1</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>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 <strong><code>maxConcurrentConsumers</code></strong> setting). There is additional doc available from <a shape="rect" class="external-link" href="https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/jms/listener/DefaultMessageListenerContainer.html#setIdleTaskExecutionLimit-int-" rel="nofollow">Spring</a>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>includeSentJMSMessageI
 D</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10.3:</strong> Only applicable when sending to JMS destination using&#160;<strong><code>InOnly</code></strong>, e.g., fire and forget. Enabling this option will enrich the Camel <a shape="rect" href="exchange.html">Exchange</a> with the actual&#160;<strong><code>JMSMessageID</code></strong> that was used by the JMS client when the message was sent to the JMS destination.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>includeAllJMSXProperties</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.11.2/2.12:</strong> Whether to include all&#160;<strong><code>JMSXxxx</code></strong> properties when mapping from JMS to Camel Message. When set to <code>true</code> properties such as <strong><co
 de>JMSXAppID</code></strong>, and <strong><code>JMSXUserID</code></strong> etc will be included.</p><p><strong>Note:</strong> If you are using a custom <strong><code>headerFilterStrategy</code></strong> then this option does not apply.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>jmsKeyFormatStrategy</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>default</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Pluggable strategy for encoding and decoding JMS keys so they can be compliant with the JMS specification.</p> 
       <div class="table-wrap"> 
-       <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh">Strategy</th><th colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>default</code></td><td colspan="1" rowspan="1" class="confluenceTd">Safely marshals dots and hyphens, <code>'<strong>.</strong>'</code> and&#160;<code>'<strong>-</strong>'</code>.</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><code>passthrough</code></td><td colspan="1" rowspan="1" class="confluenceTd">Leaves the key as is. Appropriate for use with any JMS broker that tolerates JMS header keys containing illegal characters.</td></tr></tbody></table> 
-      </div><p><strong>Note</strong>: optionally, a custom implementation can be provided of a <strong><code>org.apache.camel.component.jms.JmsKeyFormatStrategy</code></strong> and referred to using the <strong><code>#</code></strong> notation.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>jmsMessageType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Allows you to force the use of a specific&#160;<strong><code>javax.jms.Message</code></strong> implementation for sending JMS messages. Possible values are: </p> 
+       <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Strategy</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>default</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Safely marshals dots and hyphens, <code>'<strong>.</strong>'</code> and&#160;<code>'<strong>-</strong>'</code>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>passthrough</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Leaves the key as is. Appropriate for use with any JMS broker that tolerates JMS header keys containing illegal characters.</p></td></tr></tbody></table> 
+      </div><p><strong>Note</strong>: optionally, a custom implementation can be provided of a <strong><code>org.apache.camel.component.jms.JmsKeyFormatStrategy</code></strong> and referred to using the <strong><code>#</code></strong> notation.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>jmsMessageType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Allows you to force the use of a specific&#160;<strong><code>javax.jms.Message</code></strong> implementation for sending JMS messages. Possible values are:</p> 
       <ul><li><strong><code>Bytes</code></strong></li><li><strong><code>Map</code></strong></li><li><strong><code>Object</code></strong></li><li><strong><code>Stream</code></strong></li><li><strong><code>Text</code></strong></li></ul><p>By default Camel determines which JMS message type to use for the&#160;<strong><code>In</code></strong> body type. This option will override the default behavior.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>jmsOperations</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Allows you to use your own implementation of the <strong><code>org.springframework.jms.core.JmsOperations</code></strong> interface. Camel uses <strong><code>JmsTemplate</code></strong> by default. Can be used for testing purpose, but not used much as stated in the spring API docs.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>lazyC
 reateTransactionManager</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>If <strong><code>true</code></strong>, Camel will create a <strong><code>JmsTransactionManager</code></strong>, if there is no <strong><code>transactionManager</code></strong> injected when option <strong><code>transacted=true</code></strong>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>listenerConnectionFactory</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The JMS connection factory used for consuming messages.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>mapJmsMessage</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies whether Camel should auto map the rece
 ived JMS message to an appropriate payload type, such as <strong><code>javax.jms.TextMessage</code></strong> to a&#160;<strong><code>java.lang.</code><code>String</code></strong> etc. See below for more details on how message type mapping works.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>maximumBrowseSize</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-1</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Limits the number of messages fetched at most, when browsing endpoints using <a shape="rect" href="browse.html">Browse</a> or JMX API.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>messageConverter</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>To use a custom Spring <strong><code>org.springframework.jms.support.converter.MessageConverter</code></strong> so you can be 100% in control h
 ow to map to/from a <strong><code>javax.jms.Message</code></strong>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>messageIdEnabled</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>When sending, specifies whether message IDs should be added.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>messageListenerContainerFactoryRef</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10.2:</strong> Registry ID of the <strong><code>MessageListenerContainerFactory</code></strong> used to determine what <strong><code>org.springframework.jms.listener.AbstractMessageListenerContainer</code></strong> to use to consume messages.</p><p>Setting this will automatically set <strong><code>consumerType</code></strong> to <strong><code>Custom</code><
 /strong>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>messageTimestampEnabled</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies whether time-stamps should be enabled by default on sending messages.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>password</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The password for the connector factory.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>priority</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>4</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Values greater than&#160;<strong><code>1</code></strong> specify the message priority when sending (where&#160;<strong><code>0</code></strong> is the lowest priority an
 d&#160;<strong><code>9</code></strong> is the highest). The <strong><code>explicitQosEnabled</code></strong> option <em>must</em> also be enabled in order for this option to have any effect.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>pubSubNoLocal</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies whether to inhibit the delivery of messages published by its own connection.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>receiveTimeout</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>1000</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The timeout for receiving messages (in milliseconds).</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>recoveryInterval</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>5000</code></p></td><td colspa
 n="1" rowspan="1" class="confluenceTd"><p>Specifies the interval between recovery attempts, e.g., when a connection is being refreshed, in milliseconds. The default is <code><strong>5000</strong> ms</code>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>replyToSameDestinationAllowed</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.16:</strong> <strong>Consumer only:</strong> Whether a JMS consumer is allowed to send a reply message to the same destination that the consumer is using to consume from. This prevents an endless loop by consuming and sending back the same message to itself.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>replyToCacheLevelName</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CACHE_CONSUMER</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Came
 l 2.9.1:</strong> 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: <strong><code>CACHE_CONSUMER</code></strong> for exclusive or shared w/<strong><code>replyToSelectorName</code></strong> and <strong><code>CACHE_SESSION</code></strong> for shared without <strong><code>replyToSelectorName</code></strong>. Some JMS brokers such as IBM WebSphere may require this parameter to be set to <strong><code>CACHE_NONE</code></strong> in order to work.</p><p><strong>Note:</strong> The value <strong><code>CACHE_NONE</code></strong> cannot be used with temporary queues. A higher value, such as <strong><code>CACHE_CONSUMER</code></strong> or <strong><code>CACHE_SESSION</code></strong>, must be used.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>replyToDestinationSelectorName</code></p></td><td colspan="1" rowspan="1" class="confluenceT
 d"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>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).</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>replyToDeliveryPersistent</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies whether to use persistent delivery by default for replies.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>requestTimeoutCheckerInterval</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>1000</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.9.2:</strong> Configures how often Camel should check for timed out <a shape="rect" href="exchange.html">Exchange</a>s when doing request/re
 ply 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 <strong><code>requestTimeout</code></strong>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>subscriptionDurable</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>@deprecated:</strong> Enabled by default, if you specify a <strong><code>durableSubscriptionName</code></strong> and a <strong><code>clientId</code></strong>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>taskExecutor</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Allows you to specify a custom task executor for consuming messages.</p></td></tr><tr><td colspan="1" r
 owspan="1" class="confluenceTd"><p><code>taskExecutorSpring2</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.6:</strong> To use when using Spring 2.x with Camel. Allows you to specify a custom task executor for consuming messages.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>templateConnectionFactory</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The JMS connection factory used for sending messages.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>transactedInOut</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>@deprecated:</strong> Specifies whether to use transacted mode for sending messages using the&#160;<strong><
 code>InOut</code></strong> <a shape="rect" href="exchange-pattern.html">Exchange Pattern</a>. Applies only to producer endpoints. See section <a shape="rect" href="#BookInOnePage-transactedConsumption">Enabling Transacted Consumption</a> for more details.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>transactionManager</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The Spring transaction manager to use.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>transactionName</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>"JmsConsumer[destinationName]"</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The name of the transaction to use.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>transactionTimeout</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><cod
 e>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The timeout value of the transaction (in seconds), if using transacted mode.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>transferException</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>If enabled and you are using <a shape="rect" href="request-reply.html">Request Reply</a> messaging (<strong><code>InOut</code></strong>) and an <a shape="rect" href="exchange.html">Exchange</a> failed on the consumer side, then the caused <strong><code>Exception</code></strong> will be send back in response as a <strong><code>javax.jms.ObjectMessage</code></strong>. If the client is Camel, the returned <strong><code>Exception</code></strong> is re-thrown. This allows you to use Camel <a shape="rect" href="jms.html">JMS</a> as a bridge in your routing - for example, using persistent queues to enable r
 obust routing. Notice that if you also have <strong><code>transferExchange</code></strong> enabled, this option takes precedence. The caught exception is required to be serializable. The original <strong><code>Exception</code></strong> on the consumer side can be wrapped in an outer exception such as <strong><code>org.apache.camel.RuntimeCamelException</code></strong> when returned to the producer.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>transferExchange</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>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&#160;<strong><
 code>WARN</code></strong> level.</p><p>You <em>must</em> enable this option on <em>both</em> the producer <em>and</em> the consumer side, so Camel will know that the payload is an Exchange and not a regular payload.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>transferFault</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.17:</strong> If enabled and you are using Request Reply messaging (<strong><code>InOut</code></strong>) and an Exchange failed with a SOAP fault (not exception) on the consumer side, then the fault flag on&#160;<strong><code>org.apache.camel.Message.isFault()</code></strong> will be send back in the response as a JMS header with the key <strong><code>JmsConstants.JMS_TRANSFER_FAULT</code></strong>. If the client is Camel, the returned fault flag will be set on the <strong><code>org.apache.camel.Message.setFault(boolean)</cod
 e></strong>.</p><p>You may want to enable this when using Camel components that support faults such as SOAP based such as CXF or spring-ws.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>username</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The username for the connector factory.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>useMessageIDAsCorrelationID</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Specifies whether <strong><code>JMSMessageID</code></strong> should always be used as <strong><code>JMSCorrelationID</code></strong> for&#160;<strong><code>InOut</code></strong> messages.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>useVersion102</code></p></td><td colspan="1" rowspan="1" class="confluenceTd
 "><p><code>false</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>@deprecated (removed from Camel 2.5 onward)</strong> Specifies whether the old JMS API should be used.</p></td></tr></tbody></table> 
  </div>
 </div><h3 id="BookInOnePage-MessageMappingBetweenJMSandCamel">Message Mapping Between JMS and Camel</h3><p>Camel automatically maps messages between <strong><code>javax.jms.Message</code></strong> and <strong><code>org.apache.camel.Message</code></strong>. When sending a JMS message, Camel converts the message body to the following JMS message types:</p><div class="confluenceTableSmall">
@@ -16817,11 +16817,11 @@ cometds://localhost:8443/service/mychann
  <div class="table-wrap"> 
   <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>JMS Message</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Body Type</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>javax.jms.BytesMessage</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>byte[]</code></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>javax.jms.MapMessage</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Map&lt;String, Object&gt;</code></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>javax.jms.ObjectMessage</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Object</code></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>javax.jms.TextMessage</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td></tr></tbody></table> 
  </div>
-</div><h4 id="BookInOnePage-Disablingauto-mappingofJMSmessages">Disabling auto-mapping of JMS messages</h4><p>You can use the <strong><code>mapJmsMessage</code></strong> option to disable the auto-mapping above. If disabled, Camel will not try to map the received JMS message, but instead uses it directly as the payload. This allows you to avoid the overhead of mapping and let Camel just pass through the JMS message. For instance, it even allows you to route <strong><code>javax.jms.ObjectMessage</code></strong> JMS messages with classes you do <strong>not</strong> have on the classpath.</p><h4 id="BookInOnePage-UsingacustomMessageConverter">Using a custom MessageConverter</h4><p>You can use the <strong><code>messageConverter</code></strong> option to do the mapping yourself in a Spring <strong><code>org.springframework.jms.support.converter.MessageConverter</code></strong> class.</p><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 pdl" style="border-width: 1px;">
+</div><h4 id="BookInOnePage-DisablingAuto-MappingofJMSMessages">Disabling Auto-Mapping of JMS Messages</h4><p>You can use the <strong><code>mapJmsMessage</code></strong> option to disable the auto-mapping above. If disabled, Camel will not try to map the received JMS message, but instead uses it directly as the payload. This allows you to avoid the overhead of mapping and let Camel just pass through the JMS message. For instance, it even allows you to route <strong><code>javax.jms.ObjectMessage</code></strong> JMS messages with classes you do <strong>not</strong> have on the classpath.</p><h4 id="BookInOnePage-UsingacustomMessageConverter">Using a custom MessageConverter</h4><p>You can use the <strong><code>messageConverter</code></strong> option to do the mapping yourself in a Spring <strong><code>org.springframework.jms.support.converter.MessageConverter</code></strong> class.</p><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 pdl" style="border-width: 1px;">
  <div class="codeContent panelContent pdl"> 
   <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter">from(&amp;quot;file://inbox/order&amp;quot;) .to(&amp;quot;jms:queue:order?messageConverter=#myMessageConverter&amp;quot;); </script> 
  </div>
-</div><p>You can also use a custom message converter when consuming from a JMS destination.</p><h4 id="BookInOnePage-Controllingthemappingstrategyselected">Controlling the mapping strategy selected</h4><p>You can use the <strong>jmsMessageType</strong> option on the endpoint URL to force a specific message type for all messages. In the route below, we poll files from a folder and send them as <strong><code>javax.jms.TextMessage</code></strong> as we have forced the JMS producer endpoint to use text messages:</p><div class="code panel pdl" style="border-width: 1px;">
+</div><p>You can also use a custom message converter when consuming from a JMS destination.</p><h4 id="BookInOnePage-ControllingtheMappingStrategySelected">Controlling the Mapping Strategy Selected</h4><p>You can use the&#160;<strong><code>jmsMessageType</code></strong> option on the endpoint URL to force a specific message type for all messages. In the route below, we poll files from a folder and send them as <strong><code>javax.jms.TextMessage</code></strong> as we have forced the JMS producer endpoint to use text messages:</p><div class="code panel pdl" style="border-width: 1px;">
  <div class="codeContent panelContent pdl"> 
   <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter">from(&amp;quot;file://inbox/order&amp;quot;) .to(&amp;quot;jms:queue:order?jmsMessageType=Text&amp;quot;); </script> 
  </div>
@@ -16829,12 +16829,12 @@ cometds://localhost:8443/service/mychann
  <div class="codeContent panelContent pdl"> 
   <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter">from(&amp;quot;file://inbox/order&amp;quot;) .setHeader(&amp;quot;CamelJmsMessageType&amp;quot;, JmsMessageType.Text) .to(&amp;quot;jms:queue:order&amp;quot;); </script> 
  </div>
-</div><p>The possible values are defined in the <code>enum</code> class <strong><code>org.apache.camel.jms.JmsMessageType</code></strong>.</p><h3 id="BookInOnePage-Messageformatwhensending">Message format when sending</h3><p>An exchange sent via JMS must conform to the <a shape="rect" class="external-link" href="http://java.sun.com/j2ee/1.4/docs/api/javax/jms/Message.html" rel="nofollow">JMS Message spec</a>. Camel therefore applies various translation and validation rules to both key names and key values of <strong><code>exchange.in.headers</code></strong>.</p><p>The following rules are applied to the <em>key names</em> of&#160;<strong><code>exchange.in.headers</code></strong>:</p><ul class="alternate"><li><p>Keys starting with <strong><code>JMS</code></strong> or&#160;<strong><code>JMSX</code></strong> are reserved.</p></li><li><p>Key names must be literals or valid Java identifiers.</p></li><li><p>Dot and hyphen characters are replaced (and the reverse when consuming) as follows:
 </p>
+</div><p>The possible values are defined in the <code>enum</code> class <strong><code>org.apache.camel.jms.JmsMessageType</code></strong>.</p><h3 id="BookInOnePage-MessageFormatWhenSending">Message Format When Sending</h3><p>An exchange sent via JMS must conform to the <a shape="rect" class="external-link" href="http://java.sun.com/j2ee/1.4/docs/api/javax/jms/Message.html" rel="nofollow">JMS Message spec</a>. Camel therefore applies various translation and validation rules to both key names and key values of <strong><code>exchange.in.headers</code></strong>.</p><p>The following rules are applied to the <em>key names</em> of&#160;<strong><code>exchange.in.headers</code></strong>:</p><ul class="alternate"><li><p>Keys starting with <strong><code>JMS</code></strong> or&#160;<strong><code>JMSX</code></strong> are reserved.</p></li><li><p>Key names must be literals or valid Java identifiers.</p></li><li><p>Dot and hyphen characters are replaced (and the reverse when consuming) as follows:
 </p>
   <ul class="alternate"><li><p>The character <code>'<strong>.</strong>'</code> is replaced with the sequence <strong><code>_DOT_</code></strong>. The reverse replacement is applied when Camel consumes a message.&#160;</p></li><li><p>The character <code>'<strong>-</strong>'</code> is replaced with the sequence <strong><code>_HYPHEN_</code></strong>. The reverse replacement is applied when Camel consumes a message.</p></li></ul></li><li><p>The option <strong><code>jmsKeyFormatStrategy</code></strong> can be used to specify a custom key formatting strategy.</p></li></ul><p>The following rules are applied to the <em>key values</em> of <strong><code>exchange.in.headers</code></strong>:</p><ul class="alternate"><li><p>Values must be either a primitive type or of its corresponding Java object type, e.g., <strong><code>Integer</code></strong>,&#160;<strong><code>Long</code></strong> or <strong><code>Character</code></strong>.</p></li><li><p>The types <strong><code>String</code>, <code>CharS
 equence</code></strong>, <strong><code>Date</code>,&#160;<code>BigDecimal</code></strong> and&#160;<strong><code>BigInteger</code></strong> are all converted to their string representation.</p></li><li><p>All other types will result in the key value being discarded.</p></li></ul><p>If a header value is discarded Camel will log the incident using logging category <strong><code>org.apache.camel.component.jms.JmsBinding</code></strong> at the&#160;<strong><code>DEBUG</code></strong> logging level. For example:</p><div class="code panel pdl" style="border-width: 1px;">
  <div class="codeContent panelContent pdl"> 
   <script class="brush: text; gutter: false; theme: Default" type="syntaxhighlighter">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} </script> 
  </div>
-</div><h3 id="BookInOnePage-Messageformatwhenreceiving">Message format when receiving</h3><p>Camel adds the following properties to the <strong><code>Exchange</code></strong> when it receives a message:</p><div class="confluenceTableSmall">
+</div><h3 id="BookInOnePage-MessageFormatWhenReceiving">Message Format When Receiving</h3><p>Camel adds the following properties to the <strong><code>Exchange</code></strong> when it receives a message:</p><div class="confluenceTableSmall">
  <div class="table-wrap"> 
   <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Property</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>org.apache.camel.jms.replyDestination</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>javax.jms.Destination</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The reply destination.</p></td></tr></tbody></table> 
  </div>
@@ -16842,7 +16842,7 @@ cometds://localhost:8443/service/mychann
  <div class="table-wrap"> 
   <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Header</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>JMSCorrelationID</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The JMS correlation ID.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>JMSDeliveryMode</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>int</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The JMS delivery mode.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>JMSDestination</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>javax.jms.Destination</code></p></td><td colspan="1" rowspan="1" class="c
 onfluenceTd"><p>The JMS destination.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>JMSExpiration</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The JMS expiration.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>JMSMessageID</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The JMS unique message ID.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>JMSPriority</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>int</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The JMS priority (with 0 as the lowest priority and 9 as the highest).</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>JMSRedelivered</code></p></td><td colspan="1" rowspan="1" class="co
 nfluenceTd"><p><code>boolean</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Is the JMS message redelivered.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>JMSReplyTo</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>javax.jms.Destination</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The JMS reply-to destination.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>JMSTimestamp</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>long</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The JMS timestamp.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>JMSType</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The JMS type.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>JMSXGroupID</code></
 p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The JMS group ID.</p></td></tr></tbody></table> 
  </div>
-</div><p>As all the above information is standard JMS you can check the <a shape="rect" class="external-link" href="http://java.sun.com/javaee/5/docs/api/javax/jms/Message.html" rel="nofollow">JMS documentation</a> for further details.</p><h3 id="BookInOnePage-UsingCameltoSendandReceiveMessagesUsingJMSReplyTo">Using Camel to Send and Receive Messages Using JMSReplyTo</h3><p>The JMS component is complex and you have to pay close attention to how it works in some cases. So this is a short summary of some of the areas/pitfalls to look for.</p><p>When Camel sends a message using its <strong><code>JMSProducer</code></strong> it checks the following conditions:</p><ul class="alternate"><li><p>The message <a shape="rect" class="external-link" href="http://camel.apache.org/exchange-pattern.html">Exchange Pattern</a> (MEP)</p></li><li><p>Whether a <strong><code>JMSReplyTo</code></strong> was set in the endpoint or in the message headers</p></li><li><p>Whether any of the following options hav
 e been set on the JMS endpoint: <strong><code>disableReplyTo</code>,&#160;<code>preserveMessageQos</code></strong> or <strong><code>explicitQosEnabled</code>.</strong></p></li></ul><p>All this can be a tad complex to understand and configure to support your use case.</p><h4 id="BookInOnePage-JmsProducer">JmsProducer</h4><p>The <strong><code>JmsProducer</code></strong> behaves as follows, depending on configuration:</p><div class="confluenceTableSmall">
+</div><p>As all the above information is standard JMS you can check the <a shape="rect" class="external-link" href="http://java.sun.com/javaee/5/docs/api/javax/jms/Message.html" rel="nofollow">JMS documentation</a> for further details.</p><h3 id="BookInOnePage-UsingCameltoSendandReceiveMessagesUsingJMSReplyTo">Using Camel to Send and Receive Messages Using&#160;<code>JMSReplyTo</code></h3><p>The JMS component is complex and you have to pay close attention to how it works in some cases. So this is a short summary of some of the areas/pitfalls to look for.</p><p>When Camel sends a message using its <strong><code>JMSProducer</code></strong> it checks the following conditions:</p><ul class="alternate"><li><p>The message <a shape="rect" class="external-link" href="http://camel.apache.org/exchange-pattern.html">Exchange Pattern</a> (MEP)</p></li><li><p>Whether a <strong><code>JMSReplyTo</code></strong> was set in the endpoint or in the message headers</p></li><li><p>Whether any of the fol
 lowing options have been set on the JMS endpoint: <strong><code>disableReplyTo</code>,&#160;<code>preserveMessageQos</code></strong> or <strong><code>explicitQosEnabled</code>.</strong></p></li></ul><p>All this can be a tad complex to understand and configure to support your use case.</p><h4 id="BookInOnePage-JmsProducer">JmsProducer</h4><p>The <strong><code>JmsProducer</code></strong> behaves as follows, depending on configuration:</p><div class="confluenceTableSmall">
  <div class="table-wrap"> 
   <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Exchange Pattern</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Other options</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>InOut</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Camel will expect a reply, set a temporary <strong><code>JMSReplyTo</code></strong>, and after sending the message, it will start to listen for the reply message on the temporary queue.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>InOut</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>JMSReplyTo</code> is set</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Camel will expect a reply and, after sending the message, it will start to listen for the 
 reply message on the specified <strong><code>JMSReplyTo</code></strong> queue.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>InOnly</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>-</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Camel will send the message and <strong>not</strong> expect a reply.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>InOnly</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>JMSReplyTo</code> is set</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>By default, Camel discards the <strong><code>JMSReplyTo</code></strong> destination and clears the <strong><code>JMSReplyTo</code></strong> header before sending the message. Camel then sends the message and does <em>not</em> expect a reply. Camel logs this in the log at <strong><code>WARN</code></strong> level (changed to <strong><code>DEBUG</code></strong> level from <strong>Camel
  2.6</strong> on). You can use <strong><code>preserveMessageQuo=true</code></strong> to instruct Camel to keep the <strong><code>JMSReplyTo</code></strong>.</p><p>In all situations the <strong><code>JmsProducer</code></strong> does <strong>not</strong> expect any reply and thus continue after sending the message.</p></td></tr></tbody></table> 
  </div>
@@ -16854,7 +16854,7 @@ cometds://localhost:8443/service/mychann
  <div class="codeContent panelContent pdl"> 
   <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter">from(&amp;quot;activemq:queue:in&amp;quot;) .to(&amp;quot;bean:validateOrder&amp;quot;) .to(ExchangePattern.InOnly, &amp;quot;activemq:topic:order&amp;quot;) .to(&amp;quot;bean:handleOrder&amp;quot;); </script> 
  </div>
-</div><h3 id="BookInOnePage-Reuseendpointandsendtodifferentdestinationscomputedatruntime">Reuse endpoint and send to different destinations computed at runtime</h3><p>If you need to send messages to a lot of different JMS destinations, it makes sense to reuse a JMS endpoint and specify the real destination in a message header. This allows Camel to reuse the same endpoint, but send to different destinations. This greatly reduces the number of endpoints created and economizes on memory and thread resources.</p><p>You can specify the destination in the following headers:</p><div class="confluenceTableSmall">
+</div><h3 id="BookInOnePage-ComputingtheDestinationatRuntime">Computing the Destination at Runtime</h3><p>If you need to send messages to a lot of different JMS destinations, it makes sense to reuse a JMS endpoint and specify the real destination in a message header. This allows Camel to reuse the same endpoint, but send to different destinations. This greatly reduces the number of endpoints created and economizes on memory and thread resources.</p><p>You can specify the destination in the following headers:</p><div class="confluenceTableSmall">
  <div class="table-wrap"> 
   <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Header</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelJmsDestination</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>javax.jms.Destination</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>A destination object.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelJmsDestinationName</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The destination name.</p></td></tr></tbody></table> 
  </div>
@@ -16866,11 +16866,12 @@ cometds://localhost:8443/service/mychann
  <div class="codeContent panelContent pdl"> 
   <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter">public void setJmsHeader(Exchange exchange) { String id = .... exchange.getIn().setHeader(&amp;quot;CamelJmsDestinationName&amp;quot;, &amp;quot;order:&amp;quot; + id&amp;quot;); } </script> 
  </div>
-</div><p>Then Camel will read this header and use it as the destination instead of the one configured on the endpoint. So, in this example Camel sends the message to <strong><code>activemq:queue:order:2</code></strong>, assuming the <strong><code>id</code></strong> value was <strong><code>2</code></strong>.</p><p>If both the <code>CamelJmsDestination</code> and the <strong><code>CamelJmsDestinationName</code></strong> headers are set <strong><code>CamelJmsDestination</code></strong> will take priority. Note that the JMS producer removes both <strong><code>CamelJmsDestination</code></strong> and <strong><code>CamelJmsDestinationName</code></strong> headers from the exchange and does not propagate them to the created JMS message. This prevents accidental routing loops in scenarios where a message is forwarded to another JMS endpoint.</p><h3 id="BookInOnePage-ConfiguringdifferentJMSproviders">Configuring different JMS providers</h3><p>A JMS provider can be configured in <a shape="rect"
  href="spring.html">Spring</a> XML as follows:</p><div class="code panel pdl" style="border-width: 1px;">
- <div class="codeContent panelContent pdl"> 
-  <script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"> &amp;lt;camelContext id=&amp;quot;camel&amp;quot; xmlns=&amp;quot;http://camel.apache.org/schema/spring&amp;quot;&amp;gt; &amp;lt;jmxAgent id=&amp;quot;agent&amp;quot; disabled=&amp;quot;true&amp;quot;/&amp;gt; &amp;lt;/camelContext&amp;gt; &amp;lt;bean id=&amp;quot;activemq&amp;quot; class=&amp;quot;org.apache.activemq.camel.component.ActiveMQComponent&amp;quot;&amp;gt; &amp;lt;property name=&amp;quot;connectionFactory&amp;quot;&amp;gt; &amp;lt;bean class=&amp;quot;org.apache.activemq.ActiveMQConnectionFactory&amp;quot;&amp;gt; &amp;lt;property name=&amp;quot;brokerURL&amp;quot; value=&amp;quot;vm://localhost?broker.persistent=false&amp;amp;amp;broker.useJmx=false&amp;quot;/&amp;gt; &amp;lt;/bean&amp;gt; &amp;lt;/property&amp;gt; &amp;lt;/bean&amp;gt; </script> 
- </div>
-</div><p>&#160;</p><p>An unlimited number of JMS component instance can be created provided each has a <em>unique value for its<strong>&#160;</strong></em><strong><code>id</code></strong> <em>attribute. The preceding example configures an activemq component. You could do the same to configure MQSeries, TibCo, BEA, Sonic etc.</em></p><p>Once named a JMS component can be referenced from an endpoint's URI. For example, given the component name <code>activemq</code> a URI can reference the component using the format <strong><code>activemq:[queue:|topic:]destinationName</code></strong>. The same approach applies to all JMS providers. This is achieved by the&#160;<strong><code>SpringCamelContext</code></strong> lazily fetching components from the spring context for the scheme name referenced in the <a shape="rect" href="endpoint.html">Endpoint</a> <a shape="rect" href="uris.html">URIs</a> then having the <a shape="rect" href="component.html">Component</a> resolve the endpoint URI itself.<
 /p><h4 id="BookInOnePage-UsingJNDItofindtheConnectionFactory">Using JNDI to find the ConnectionFactory</h4><p>If you are using a J2EE container, you might need to look up JNDI to find the JMS <strong><code>ConnectionFactory</code></strong> rather than use the usual <strong><code>&lt;bean&gt;</code></strong> 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 pdl" style="border-width: 1px;">
+</div><p>Then Camel will read this header and use it as the destination instead of the one configured on the endpoint. So, in this example Camel sends the message to <strong><code>activemq:queue:order:2</code></strong>, assuming the <strong><code>id</code></strong> value was <strong><code>2</code></strong>.</p><p>If both the <code>CamelJmsDestination</code> and the <strong><code>CamelJmsDestinationName</code></strong> headers are set <strong><code>CamelJmsDestination</code></strong> will take priority. Note that the JMS producer removes both <strong><code>CamelJmsDestination</code></strong> and <strong><code>CamelJmsDestinationName</code></strong> headers from the exchange and does not propagate them to the created JMS message. This prevents accidental routing loops in scenarios where a message is forwarded to another JMS endpoint.</p><h3 id="BookInOnePage-ConfiguringDifferentJMSProviders">Configuring Different JMS Providers</h3><p>A JMS provider can be configured in <a shape="rect"
  href="spring.html">Spring</a> XML as follows:
+ </p><div class="code panel pdl" style="border-width: 1px;">
+  <div class="codeContent panelContent pdl"> 
+   <script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"> &amp;lt;camelContext id=&amp;quot;camel&amp;quot; xmlns=&amp;quot;http://camel.apache.org/schema/spring&amp;quot;&amp;gt; &amp;lt;jmxAgent id=&amp;quot;agent&amp;quot; disabled=&amp;quot;true&amp;quot;/&amp;gt; &amp;lt;/camelContext&amp;gt; &amp;lt;bean id=&amp;quot;activemq&amp;quot; class=&amp;quot;org.apache.activemq.camel.component.ActiveMQComponent&amp;quot;&amp;gt; &amp;lt;property name=&amp;quot;connectionFactory&amp;quot;&amp;gt; &amp;lt;bean class=&amp;quot;org.apache.activemq.ActiveMQConnectionFactory&amp;quot;&amp;gt; &amp;lt;property name=&amp;quot;brokerURL&amp;quot; value=&amp;quot;vm://localhost?broker.persistent=false&amp;amp;amp;broker.useJmx=false&amp;quot;/&amp;gt; &amp;lt;/bean&amp;gt; &amp;lt;/property&amp;gt; &amp;lt;/bean&amp;gt; </script> 
+  </div>
+ </div>&#160;<p>An unlimited number of JMS component instance can be created provided each has a <em>unique value for its<strong>&#160;</strong></em><strong><code>id</code></strong> <em>attribute. The preceding example configures an activemq component. You could do the same to configure MQSeries, TibCo, BEA, Sonic etc.</em></p><p>Once named a JMS component can be referenced from an endpoint's URI. For example, given the component name <code>activemq</code> a URI can reference the component using the format <strong><code>activemq:[queue:|topic:]destinationName</code></strong>. The same approach applies to all JMS providers. This is achieved by the&#160;<strong><code>SpringCamelContext</code></strong> lazily fetching components from the spring context for the scheme name referenced in the <a shape="rect" href="endpoint.html">Endpoint</a> <a shape="rect" href="uris.html">URIs</a> then having the <a shape="rect" href="component.html">Component</a> resolve the endpoint URI itself.</p><h4
  id="BookInOnePage-UsingJNDItoFindtheConnectionFactory">Using JNDI to Find the Connection Factory</h4><p>If you are using a J2EE container, you might need to look up JNDI to find the JMS <strong><code>connectionFactory</code></strong> rather than use the usual <strong><code>&lt;bean&gt;</code></strong> 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 pdl" style="border-width: 1px;">
  <div class="codeContent panelContent pdl"> 
   <script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter">&amp;lt;bean id=&amp;quot;weblogic&amp;quot; class=&amp;quot;org.apache.camel.component.jms.JmsComponent&amp;quot;&amp;gt; &amp;lt;property name=&amp;quot;connectionFactory&amp;quot; ref=&amp;quot;myConnectionFactory&amp;quot;/&amp;gt; &amp;lt;/bean&amp;gt; &amp;lt;jee:jndi-lookup id=&amp;quot;myConnectionFactory&amp;quot; jndi-name=&amp;quot;jms/connectionFactory&amp;quot;/&amp;gt; </script> 
  </div>
@@ -16878,11 +16879,11 @@ cometds://localhost:8443/service/mychann
  <div class="codeContent panelContent pdl"> 
   <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter">from(&amp;quot;jms:SomeQueue?concurrentConsumers=20&amp;quot;) .bean(MyClass.class); </script> 
  </div>
-</div><p>You can configure this option in one of the following ways:</p><ul><li><p>On the <strong><code>JmsComponent</code></strong></p></li><li><p>On the endpoint URI</p></li><li><p>By invoking <strong><code>setConcurrentConsumers()</code></strong> directly on the <strong><code>JmsEndpoint</code></strong>.</p></li></ul><h4 id="BookInOnePage-ConcurrentConsumingwithasyncconsumer">Concurrent Consuming with async consumer</h4><p>Notice that each concurrent consumer will only pickup the next available message from the JMS broker, when the current message has been fully processed. You can set the option <strong><code>asyncConsumer=true</code></strong> to let the consumer 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">Asynchronous Routing Engine</a>). See more details in the table on top of the page about the <strong><code>asyncConsumer</code></strong> option.</p><div 
 class="code panel pdl" style="border-width: 1px;">
+</div><p>You can configure this option in one of the following ways:</p><ul><li><p>On the <strong><code>JmsComponent</code></strong></p></li><li><p>On the endpoint URI</p></li><li><p>By invoking <strong><code>setConcurrentConsumers()</code></strong> directly on the <strong><code>JmsEndpoint</code></strong>.</p></li></ul><h4 id="BookInOnePage-ConcurrentConsumingwithasyncConsumer">Concurrent Consuming with&#160;<code>asyncConsumer</code></h4><p>Notice that each concurrent consumer will only pickup the next available message from the JMS broker, when the current message has been fully processed. You can set the option <strong><code>asyncConsumer=true</code></strong> to let the consumer 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">Asynchronous Routing Engine</a>). See more details in the table on top of the page about the <strong><code>asyncConsumer</code></strong>
  option.</p><div class="code panel pdl" style="border-width: 1px;">
  <div class="codeContent panelContent pdl"> 
   <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter">from(&amp;quot;jms:SomeQueue?concurrentConsumers=20&amp;amp;asyncConsumer=true&amp;quot;) .bean(MyClass.class); </script> 
  </div>
-</div><h3 id="BookInOnePage-Request-replyoverJMS">Request-reply over JMS</h3><p>Camel supports <a shape="rect" href="request-reply.html">Request Reply</a> over JMS. In essence the MEP of the Exchange should be <strong><code>InOut</code></strong> when you send a message to a JMS queue.</p><p>Camel offers a number of options to configure request/reply over JMS that influence performance and clustered environments. The table below summaries the options.</p><div class="confluenceTableSmall">
+</div><h3 id="BookInOnePage-Request-ReplyoverJMS">Request-Reply over JMS</h3><p>Camel supports <a shape="rect" href="request-reply.html">Request Reply</a> over JMS. In essence the MEP of the Exchange should be <strong><code>InOut</code></strong> when you send a message to a JMS queue.</p><p>Camel offers a number of options to configure request/reply over JMS that influence performance and clustered environments. The table below summaries the options.</p><div class="confluenceTableSmall">
  <div class="table-wrap"> 
   <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Option</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Performance</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Cluster</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Temporary</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Fast</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Yes</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>A temporary queue is used as reply queue, and automatic created by Camel. To use this do <strong>not</strong> specify a&#160;<strong><code>replyTo</code></strong> queue name. And you can optionally configure <strong><code>replyToType=Temporary</code></strong> to make it stand out that temporary queues are in use.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Shared</cod
 e></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Slow</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Yes</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>A shared persistent queue is used as reply queue. The queue must be created beforehand, although some brokers can create them on the fly such as Apache ActiveMQ. To use this you must specify the&#160;<strong><code>replyTo</code></strong> queue name. And you can optionally configure <strong><code>replyToType=Shared</code></strong> to make it stand out that shared queues are in use. A shared queue can be used in a clustered environment with multiple nodes running this Camel application at the same time. All using the same shared reply queue. This is possible because JMS Message selectors are used to correlate expected reply messages; this impacts performance though. JMS Message selectors is slower, and therefore not as fast as <strong><code>Temporary</code></strong> or <strong><code>Exclusive</co
 de></strong> queues. See further below how to tweak this for better performance.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>Exclusive</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Fast</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>No (*Yes)</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>An exclusive persistent queue is used as reply queue. The queue must be created beforehand, although some brokers can create them on the fly such as Apache ActiveMQ. To use this you must specify the replyTo queue name. And you <strong>must</strong> configure <strong><code>replyToType=Exclusive</code></strong> to instruct Camel to use exclusive queues, as <code>Shared</code> is used by default, if a <strong><code>replyTo</code></strong> queue name was configured. When using exclusive reply queues, then JMS Message selectors are <strong>not</strong> in use, and therefore other applications must not use this queue as well. A
 n exclusive queue <strong>cannot</strong> be used in a clustered environment with multiple nodes running this Camel application at the same time; as we do not have control if the reply queue comes back to the same node that sent the request message; that is why shared queues use JMS Message selectors to make sure of this. <strong>Though</strong> if you configure each Exclusive reply queue with an unique name per node, then you can run this in a clustered environment. As then the reply message will be sent back to that queue for the given node, that awaits the reply message.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>concurrentConsumers</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Fast</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Yes</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10.3:</strong> Allows to process reply messages concurrently using concurrent message listeners in use. You c
 an specify a range using the <strong><code>concurrentConsumers</code></strong> and <strong><code>maxConcurrentConsumers</code></strong> options.</p><p><strong>Note:</strong> That using <code>Shared</code> reply queues may not work as well with concurrent listeners, so use this option with care.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>maxConcurrentConsumers</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Fast</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Yes</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10.3:</strong> Allows to process reply messages concurrently using concurrent message listeners in use. You can specify a range using the <strong><code>concurrentConsumers</code></strong> and <strong><code>maxConcurrentConsumers</code></strong> options.</p><p><strong>Note:</strong> That using <code>Shared</code> reply queues may not work as well with concurrent listeners, so use this opti
 on with care.</p></td></tr></tbody></table> 
  </div>
@@ -16899,7 +16900,7 @@ cometds://localhost:8443/service/mychann
  <div class="codeContent panelContent pdl"> 
   <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter">from(xxx) .inOut().to(&amp;quot;activemq:queue:foo?concurrentConsumers=5&amp;quot;) .to(yyy) .to(zzz); </script> 
  </div>
-</div><h4 id="BookInOnePage-Request-replyoverJMSandusingasharedfixedreplyqueue">Request-reply over JMS and using a shared fixed reply queue</h4><p>If you use a fixed reply queue when doing <a shape="rect" href="request-reply.html">Request Reply</a> over JMS as shown in the example below, then pay attention.</p><div class="code panel pdl" style="border-width: 1px;">
+</div><h4 id="BookInOnePage-Request-ReplyoverJMSUsingaSharedFixedReplyQueue">Request-Reply over JMS Using a Shared Fixed Reply Queue</h4><p>If you use a fixed reply queue when doing <a shape="rect" href="request-reply.html">Request Reply</a> over JMS as shown in the example below, then pay attention.</p><div class="code panel pdl" style="border-width: 1px;">
  <div class="codeContent panelContent pdl"> 
   <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter">from(xxx) .inOut().to(&amp;quot;activemq:queue:foo?replyTo=bar&amp;quot;) .to(yyy); </script> 
  </div>
@@ -16907,7 +16908,7 @@ cometds://localhost:8443/service/mychann
  <div class="codeContent panelContent pdl"> 
   <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter">from(xxx) .inOut().to(&amp;quot;activemq:queue:foo?replyTo=bar&amp;amp;receiveTimeout=250&amp;quot;) .to(yyy); </script> 
  </div>

[... 616 lines stripped ...]