Author: buildbot
Date: Fri Jan  2 08:18:50 2015
New Revision: 934757

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/mybatis.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 Fri Jan  2 
08:18:50 2015
@@ -1415,11 +1415,11 @@ template.send("direct:alias-verify&
                     </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">/*<![CDATA[*/
-div.rbtoc1419769046155 {padding: 0px;}
-div.rbtoc1419769046155 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1419769046155 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1420186651505 {padding: 0px;}
+div.rbtoc1420186651505 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1420186651505 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1419769046155">
+/*]]>*/</style></p><div class="toc-macro rbtoc1420186651505">
 <ul class="toc-indentation"><li><a shape="rect" href="#CXF-CXFComponent">CXF 
Component</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#CXF-URIformat">URI 
format</a></li><li><a shape="rect" href="#CXF-Options">Options</a>
 <ul class="toc-indentation"><li><a shape="rect" 
href="#CXF-Thedescriptionsofthedataformats">The descriptions of the 
dataformats</a>
@@ -8641,7 +8641,7 @@ msv:http://acme.com/cheese.rng
 </div></div><h3 id="BookComponentAppendix-URIformat.46">URI format</h3><div 
class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[mybatis:statementName[?options]
 ]]></script>
-</div></div><p>Where <strong>statementName</strong> is the statement name in 
the MyBatis XML mapping file which maps to the query, insert, update or delete 
operation you wish to evaluate.</p><p>You can append query options to the URI 
in the following format, 
<code>?option=value&amp;option=value&amp;...</code></p><p>This component will 
by default load the MyBatis SqlMapConfig file from the root of the classpath 
with the expected name of <code>SqlMapConfig.xml</code>.<br clear="none"> If 
the file is located in another location, you will need to configure the 
<code>configurationUri</code> option on the <code>MyBatisComponent</code> 
component.</p><h3 id="BookComponentAppendix-Options.36">Options</h3><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>Type</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Default<
 /p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>consumer.onConsume</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Statements to run after 
consuming. Can be used, for example, to update rows after they have been 
consumed and processed in Camel. See sample later. Multiple statements can be 
separated with commas.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.useIterator</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>boolean</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 <code>true</code> each row returned when 
polling will be processed individually. If
  <code>false</code> the entire <code>List</code> of data is set as the IN 
body.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.routeEmptyResultSet</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>boolean</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Sets whether empty result sets should be 
routed.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>statementType</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>StatementType</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Mandatory to specify for the 
producer to control which kind of operation to invoke. The enum values are: 
<code>SelectOne</code>, <code>SelectList</code>, <code>Insert</code>, 
<code>InsertList</code>, <code>Update</co
 de>, <code>UpdateList</code>, <code>Delete</code>, and 
<code>DeleteList</code>. <strong>Notice:</strong> <code>InsertList</code> is 
available as of Camel 2.10, and <code>UpdateList</code>, 
<code>DeleteList</code> is available as of Camel 2.11.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>maxMessagesPerPoll</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>int</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>0</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>This option is intended to split results 
returned by the database pool into the batches and deliver them in multiple 
exchanges. This integer defines the maximum messages to deliver in single 
exchange. By default, no maximum is set. Can be used to set a limit of e.g. 
1000 to avoid when starting up the server that there are thousands of files. 
Set a value of 0 or negative to disable it.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="
 confluenceTd"><p><code>executorType</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>String</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.11:</strong> The executor type to be 
used while executing statements. The supported values are: simple, reuse, 
batch. By default, the value is not specified and is equal to what MyBatis 
uses, i.e. <strong>simple</strong>. <br clear="none" 
class="atl-forced-newline"> <strong>simple</strong> executor does nothing 
special. <br clear="none" class="atl-forced-newline"> <strong>reuse</strong> 
executor reuses prepared statements. <br clear="none" 
class="atl-forced-newline"> <strong>batch</strong> executor reuses statements 
and batches updates.</p></td></tr></tbody></table></div></div><h3 
id="BookComponentAppendix-MessageHeaders.13">Message Headers</h3><p>Camel will 
populate the result message, either IN or OUT with a 
 header with the statement used:</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>CamelMyBatisStatementName</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 
<strong>statementName</strong> used (for example: 
insertAccount).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>CamelMyBatisResult</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>Object</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>The <strong>response</strong> returned from 
MtBatis in any of the operations. For instance an <code>INSERT<
 /code> could return the auto-generated key, or number of rows 
etc.</p></td></tr></tbody></table></div></div><h3 
id="BookComponentAppendix-MessageBody.3">Message Body</h3><p>The response from 
MyBatis will only be set as the body if it's a <code>SELECT</code> statement. 
That means, for example, for <code>INSERT</code> statements Camel will not 
replace the body. This allows you to continue routing and keep the original 
body. The response from MyBatis is always stored in the header with the key 
<code>CamelMyBatisResult</code>.</p><h3 
id="BookComponentAppendix-Samples.10">Samples</h3><p>For example if you wish to 
consume beans from a JMS queue and insert them into a database you could do the 
following:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><p>Where <strong>statementName</strong> is the statement name in 
the MyBatis XML mapping file which maps to the query, insert, update or delete 
operation you wish to evaluate.</p><p>You can append query options to the URI 
in the following format, 
<code>?option=value&amp;option=value&amp;...</code></p><p>This component will 
by default load the MyBatis SqlMapConfig file from the root of the classpath 
with the expected name of <code>SqlMapConfig.xml</code>.<br clear="none"> If 
the file is located in another location, you will need to configure the 
<code>configurationUri</code> option on the <code>MyBatisComponent</code> 
component.</p><h3 id="BookComponentAppendix-Options.36">Options</h3><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>Type</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Default<
 /p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>consumer.onConsume</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Statements to run after 
consuming. Can be used, for example, to update rows after they have been 
consumed and processed in Camel. See sample later. Multiple statements can be 
separated with commas.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.useIterator</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>boolean</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 <code>true</code> each row returned when 
polling will be processed individually. If
  <code>false</code> the entire <code>List</code> of data is set as the IN 
body.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.routeEmptyResultSet</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>boolean</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Sets whether empty result sets should be 
routed.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>statementType</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>StatementType</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Mandatory to specify for the 
producer to control which kind of operation to invoke. The enum values are: 
<code>SelectOne</code>, <code>SelectList</code>, <code>Insert</code>, 
<code>InsertList</code>, <code>Update</co
 de>, <code>UpdateList</code>, <code>Delete</code>, and 
<code>DeleteList</code>. <strong>Notice:</strong> <code>InsertList</code> is 
available as of Camel 2.10, and <code>UpdateList</code>, 
<code>DeleteList</code> is available as of Camel 2.11.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>maxMessagesPerPoll</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>int</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>0</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>This option is intended to split results 
returned by the database pool into the batches and deliver them in multiple 
exchanges. This integer defines the maximum messages to deliver in single 
exchange. By default, no maximum is set. Can be used to set a limit of e.g. 
1000 to avoid when starting up the server that there are thousands of files. 
Set a value of 0 or negative to disable it.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="
 confluenceTd"><p><code>executorType</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>String</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.11:</strong> The executor type to be 
used while executing statements. The supported values are: simple, reuse, 
batch. By default, the value is not specified and is equal to what MyBatis 
uses, i.e. <strong>simple</strong>. <br clear="none" 
class="atl-forced-newline"> <strong>simple</strong> executor does nothing 
special. <br clear="none" class="atl-forced-newline"> <strong>reuse</strong> 
executor reuses prepared statements. <br clear="none" 
class="atl-forced-newline"> <strong>batch</strong> executor reuses statements 
and batches updates.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><code>outputHeader</code></td><td colspan="1" rowspan="1" 
class="confluenceTd"><code>String</code></td><td cols
 pan="1" rowspan="1" class="confluenceTd"><code>null</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><strong>Camel 2.15:</strong><span 
style="color: rgb(0,0,0);">&#160;To store the result as a header instead of the 
message body. This allows to preserve the existing message body 
as-is.</span></td></tr></tbody></table></div></div><h3 
id="BookComponentAppendix-MessageHeaders.13">Message Headers</h3><p>Camel will 
populate the result message, either IN or OUT with a header with the statement 
used:</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>CamelMyBatisStatementName</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 
<strong>statementName</strong> used (for example: 
insertAccount).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>CamelMyBatisResult</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>Object</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>The <strong>response</strong> returned from 
MtBatis in any of the operations. For instance an <code>INSERT</code> could 
return the auto-generated key, or number of rows 
etc.</p></td></tr></tbody></table></div></div><h3 
id="BookComponentAppendix-MessageBody.3">Message Body</h3><p>The response from 
MyBatis will only be set as the body if it's a <code>SELECT</code> statement. 
That means, for example, for <code>INSERT</code> statements Camel will not 
replace the body. This allows you to continue routing and keep the original 
body. The response from MyBatis is always stored in the header with the key 
<code>CamelMyBatisResult
 </code>.</p><h3 id="BookComponentAppendix-Samples.10">Samples</h3><p>For 
example if you wish to consume beans from a JMS queue and insert them into a 
database you could do the following:</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[from(&quot;activemq:queue:newAccount&quot;).
   to(&quot;mybatis:insertAccount?statementType=Insert&quot;);
 ]]></script>

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 Jan  2 08:18:50 
2015
@@ -4126,11 +4126,11 @@ While not actual tutorials you might fin
                     </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.rbtoc1419769054048 {padding: 0px;}
-div.rbtoc1419769054048 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1419769054048 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1420186662734 {padding: 0px;}
+div.rbtoc1420186662734 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1420186662734 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1419769054048">
+/*]]>*/</style></p><div class="toc-macro rbtoc1420186662734">
 <ul class="toc-indentation"><li><a shape="rect" 
href="#Tutorial-JmsRemoting-TutorialonSpringRemotingwithJMS">Tutorial on Spring 
Remoting with JMS</a></li><li><a shape="rect" 
href="#Tutorial-JmsRemoting-Preface">Preface</a></li><li><a shape="rect" 
href="#Tutorial-JmsRemoting-Prerequisites">Prerequisites</a></li><li><a 
shape="rect" 
href="#Tutorial-JmsRemoting-Distribution">Distribution</a></li><li><a 
shape="rect" href="#Tutorial-JmsRemoting-About">About</a></li><li><a 
shape="rect" href="#Tutorial-JmsRemoting-CreatetheCamelProject">Create the 
Camel Project</a>
 <ul class="toc-indentation"><li><a shape="rect" 
href="#Tutorial-JmsRemoting-UpdatethePOMwithDependencies">Update the POM with 
Dependencies</a></li></ul>
 </li><li><a shape="rect" href="#Tutorial-JmsRemoting-WritingtheServer">Writing 
the Server</a>
@@ -6316,11 +6316,11 @@ So we completed the last piece in the pi
 
 
 <style type="text/css">/*<![CDATA[*/
-div.rbtoc1419769054362 {padding: 0px;}
-div.rbtoc1419769054362 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1419769054362 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1420186663068 {padding: 0px;}
+div.rbtoc1420186663068 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1420186663068 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style><div class="toc-macro rbtoc1419769054362">
+/*]]>*/</style><div class="toc-macro rbtoc1420186663068">
 <ul class="toc-indentation"><li><a shape="rect" 
href="#Tutorial-AXIS-Camel-TutorialusingAxis1.4withApacheCamel">Tutorial using 
Axis 1.4 with Apache Camel</a>
 <ul class="toc-indentation"><li><a shape="rect" 
href="#Tutorial-AXIS-Camel-Prerequisites">Prerequisites</a></li><li><a 
shape="rect" 
href="#Tutorial-AXIS-Camel-Distribution">Distribution</a></li><li><a 
shape="rect" 
href="#Tutorial-AXIS-Camel-Introduction">Introduction</a></li><li><a 
shape="rect" href="#Tutorial-AXIS-Camel-SettinguptheprojecttorunAxis">Setting 
up the project to run Axis</a>
 <ul class="toc-indentation"><li><a shape="rect" 
href="#Tutorial-AXIS-Camel-Maven2">Maven 2</a></li><li><a shape="rect" 
href="#Tutorial-AXIS-Camel-wsdl">wsdl</a></li><li><a shape="rect" 
href="#Tutorial-AXIS-Camel-ConfiguringAxis">Configuring Axis</a></li><li><a 
shape="rect" href="#Tutorial-AXIS-Camel-RunningtheExample">Running the 
Example</a></li></ul>
@@ -19229,11 +19229,11 @@ template.send(&quot;direct:alias-verify&
                     </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">/*<![CDATA[*/
-div.rbtoc1419769058149 {padding: 0px;}
-div.rbtoc1419769058149 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1419769058149 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1420186669569 {padding: 0px;}
+div.rbtoc1420186669569 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1420186669569 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1419769058149">
+/*]]>*/</style></p><div class="toc-macro rbtoc1420186669569">
 <ul class="toc-indentation"><li><a shape="rect" href="#CXF-CXFComponent">CXF 
Component</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#CXF-URIformat">URI 
format</a></li><li><a shape="rect" href="#CXF-Options">Options</a>
 <ul class="toc-indentation"><li><a shape="rect" 
href="#CXF-Thedescriptionsofthedataformats">The descriptions of the 
dataformats</a>
@@ -26455,7 +26455,7 @@ msv:http://acme.com/cheese.rng
 </div></div><h3 id="BookInOnePage-URIformat.47">URI format</h3><div 
class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[mybatis:statementName[?options]
 ]]></script>
-</div></div><p>Where <strong>statementName</strong> is the statement name in 
the MyBatis XML mapping file which maps to the query, insert, update or delete 
operation you wish to evaluate.</p><p>You can append query options to the URI 
in the following format, 
<code>?option=value&amp;option=value&amp;...</code></p><p>This component will 
by default load the MyBatis SqlMapConfig file from the root of the classpath 
with the expected name of <code>SqlMapConfig.xml</code>.<br clear="none"> If 
the file is located in another location, you will need to configure the 
<code>configurationUri</code> option on the <code>MyBatisComponent</code> 
component.</p><h3 id="BookInOnePage-Options.57">Options</h3><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>Type</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Default</p></th>
 <th colspan="1" rowspan="1" 
class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>consumer.onConsume</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Statements to run after 
consuming. Can be used, for example, to update rows after they have been 
consumed and processed in Camel. See sample later. Multiple statements can be 
separated with commas.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.useIterator</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>boolean</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 <code>true</code> each row returned when 
polling will be processed individually. If <code>f
 alse</code> the entire <code>List</code> of data is set as the IN 
body.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.routeEmptyResultSet</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>boolean</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Sets whether empty result sets should be 
routed.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>statementType</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>StatementType</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Mandatory to specify for the 
producer to control which kind of operation to invoke. The enum values are: 
<code>SelectOne</code>, <code>SelectList</code>, <code>Insert</code>, 
<code>InsertList</code>, <code>Update</code>, <co
 de>UpdateList</code>, <code>Delete</code>, and <code>DeleteList</code>. 
<strong>Notice:</strong> <code>InsertList</code> is available as of Camel 2.10, 
and <code>UpdateList</code>, <code>DeleteList</code> is available as of Camel 
2.11.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>maxMessagesPerPoll</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>int</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>0</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>This option is intended to split results 
returned by the database pool into the batches and deliver them in multiple 
exchanges. This integer defines the maximum messages to deliver in single 
exchange. By default, no maximum is set. Can be used to set a limit of e.g. 
1000 to avoid when starting up the server that there are thousands of files. 
Set a value of 0 or negative to disable it.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluen
 ceTd"><p><code>executorType</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>String</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.11:</strong> The executor type to be 
used while executing statements. The supported values are: simple, reuse, 
batch. By default, the value is not specified and is equal to what MyBatis 
uses, i.e. <strong>simple</strong>. <br clear="none" 
class="atl-forced-newline"> <strong>simple</strong> executor does nothing 
special. <br clear="none" class="atl-forced-newline"> <strong>reuse</strong> 
executor reuses prepared statements. <br clear="none" 
class="atl-forced-newline"> <strong>batch</strong> executor reuses statements 
and batches updates.</p></td></tr></tbody></table></div></div><h3 
id="BookInOnePage-MessageHeaders.13">Message Headers</h3><p>Camel will populate 
the result message, either IN or OUT with a header with the 
 statement used:</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>CamelMyBatisStatementName</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 
<strong>statementName</strong> used (for example: 
insertAccount).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>CamelMyBatisResult</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>Object</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>The <strong>response</strong> returned from 
MtBatis in any of the operations. For instance an <code>INSERT</code> could ret
 urn the auto-generated key, or number of rows 
etc.</p></td></tr></tbody></table></div></div><h3 
id="BookInOnePage-MessageBody.3">Message Body</h3><p>The response from MyBatis 
will only be set as the body if it's a <code>SELECT</code> statement. That 
means, for example, for <code>INSERT</code> statements Camel will not replace 
the body. This allows you to continue routing and keep the original body. The 
response from MyBatis is always stored in the header with the key 
<code>CamelMyBatisResult</code>.</p><h3 
id="BookInOnePage-Samples.17">Samples</h3><p>For example if you wish to consume 
beans from a JMS queue and insert them into a database you could do the 
following:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+</div></div><p>Where <strong>statementName</strong> is the statement name in 
the MyBatis XML mapping file which maps to the query, insert, update or delete 
operation you wish to evaluate.</p><p>You can append query options to the URI 
in the following format, 
<code>?option=value&amp;option=value&amp;...</code></p><p>This component will 
by default load the MyBatis SqlMapConfig file from the root of the classpath 
with the expected name of <code>SqlMapConfig.xml</code>.<br clear="none"> If 
the file is located in another location, you will need to configure the 
<code>configurationUri</code> option on the <code>MyBatisComponent</code> 
component.</p><h3 id="BookInOnePage-Options.57">Options</h3><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>Type</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Default</p></th>
 <th colspan="1" rowspan="1" 
class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>consumer.onConsume</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Statements to run after 
consuming. Can be used, for example, to update rows after they have been 
consumed and processed in Camel. See sample later. Multiple statements can be 
separated with commas.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.useIterator</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>boolean</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 <code>true</code> each row returned when 
polling will be processed individually. If <code>f
 alse</code> the entire <code>List</code> of data is set as the IN 
body.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.routeEmptyResultSet</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>boolean</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Sets whether empty result sets should be 
routed.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>statementType</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>StatementType</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Mandatory to specify for the 
producer to control which kind of operation to invoke. The enum values are: 
<code>SelectOne</code>, <code>SelectList</code>, <code>Insert</code>, 
<code>InsertList</code>, <code>Update</code>, <co
 de>UpdateList</code>, <code>Delete</code>, and <code>DeleteList</code>. 
<strong>Notice:</strong> <code>InsertList</code> is available as of Camel 2.10, 
and <code>UpdateList</code>, <code>DeleteList</code> is available as of Camel 
2.11.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>maxMessagesPerPoll</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>int</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>0</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>This option is intended to split results 
returned by the database pool into the batches and deliver them in multiple 
exchanges. This integer defines the maximum messages to deliver in single 
exchange. By default, no maximum is set. Can be used to set a limit of e.g. 
1000 to avoid when starting up the server that there are thousands of files. 
Set a value of 0 or negative to disable it.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluen
 ceTd"><p><code>executorType</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>String</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.11:</strong> The executor type to be 
used while executing statements. The supported values are: simple, reuse, 
batch. By default, the value is not specified and is equal to what MyBatis 
uses, i.e. <strong>simple</strong>. <br clear="none" 
class="atl-forced-newline"> <strong>simple</strong> executor does nothing 
special. <br clear="none" class="atl-forced-newline"> <strong>reuse</strong> 
executor reuses prepared statements. <br clear="none" 
class="atl-forced-newline"> <strong>batch</strong> executor reuses statements 
and batches updates.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><code>outputHeader</code></td><td colspan="1" rowspan="1" 
class="confluenceTd"><code>String</code></td><td colspan="1" 
 rowspan="1" class="confluenceTd"><code>null</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><strong>Camel 2.15:</strong><span 
style="color: rgb(0,0,0);">&#160;To store the result as a header instead of the 
message body. This allows to preserve the existing message body 
as-is.</span></td></tr></tbody></table></div></div><h3 
id="BookInOnePage-MessageHeaders.13">Message Headers</h3><p>Camel will populate 
the result message, either IN or OUT with a header with the statement 
used:</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>CamelMyBatisStatementName</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td 
colsp
 an="1" rowspan="1" class="confluenceTd"><p>The <strong>statementName</strong> 
used (for example: insertAccount).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>CamelMyBatisResult</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>Object</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>The <strong>response</strong> returned from 
MtBatis in any of the operations. For instance an <code>INSERT</code> could 
return the auto-generated key, or number of rows 
etc.</p></td></tr></tbody></table></div></div><h3 
id="BookInOnePage-MessageBody.3">Message Body</h3><p>The response from MyBatis 
will only be set as the body if it's a <code>SELECT</code> statement. That 
means, for example, for <code>INSERT</code> statements Camel will not replace 
the body. This allows you to continue routing and keep the original body. The 
response from MyBatis is always stored in the header with the key 
<code>CamelMyBatisResult</code>.</p><h3 id="Book
 InOnePage-Samples.17">Samples</h3><p>For example if you wish to consume beans 
from a JMS queue and insert them into a database you could do the 
following:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[from(&quot;activemq:queue:newAccount&quot;).
   to(&quot;mybatis:insertAccount?statementType=Insert&quot;);
 ]]></script>

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/mybatis.html
==============================================================================
--- websites/production/camel/content/mybatis.html (original)
+++ websites/production/camel/content/mybatis.html Fri Jan  2 08:18:50 2015
@@ -97,7 +97,7 @@
 </div></div><h3 id="MyBatis-URIformat">URI format</h3><div class="code panel 
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[mybatis:statementName[?options]
 ]]></script>
-</div></div><p>Where <strong>statementName</strong> is the statement name in 
the MyBatis XML mapping file which maps to the query, insert, update or delete 
operation you wish to evaluate.</p><p>You can append query options to the URI 
in the following format, 
<code>?option=value&amp;option=value&amp;...</code></p><p>This component will 
by default load the MyBatis SqlMapConfig file from the root of the classpath 
with the expected name of <code>SqlMapConfig.xml</code>.<br clear="none"> If 
the file is located in another location, you will need to configure the 
<code>configurationUri</code> option on the <code>MyBatisComponent</code> 
component.</p><h3 id="MyBatis-Options">Options</h3><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>Type</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Default</p></th><th colsp
 an="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.onConsume</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Statements to run after consuming. Can be 
used, for example, to update rows after they have been consumed and processed 
in Camel. See sample later. Multiple statements can be separated with 
commas.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.useIterator</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>boolean</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 <code>true</code> each row returned when 
polling will be processed individually. If <code>false</cod
 e> the entire <code>List</code> of data is set as the IN 
body.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.routeEmptyResultSet</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>boolean</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Sets whether empty result sets should be 
routed.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>statementType</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>StatementType</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Mandatory to specify for the 
producer to control which kind of operation to invoke. The enum values are: 
<code>SelectOne</code>, <code>SelectList</code>, <code>Insert</code>, 
<code>InsertList</code>, <code>Update</code>, <code>Update
 List</code>, <code>Delete</code>, and <code>DeleteList</code>. 
<strong>Notice:</strong> <code>InsertList</code> is available as of Camel 2.10, 
and <code>UpdateList</code>, <code>DeleteList</code> is available as of Camel 
2.11.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>maxMessagesPerPoll</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>int</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>0</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>This option is intended to split results 
returned by the database pool into the batches and deliver them in multiple 
exchanges. This integer defines the maximum messages to deliver in single 
exchange. By default, no maximum is set. Can be used to set a limit of e.g. 
1000 to avoid when starting up the server that there are thousands of files. 
Set a value of 0 or negative to disable it.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p>
 <code>executorType</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>String</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.11:</strong> The executor type to be 
used while executing statements. The supported values are: simple, reuse, 
batch. By default, the value is not specified and is equal to what MyBatis 
uses, i.e. <strong>simple</strong>. <br clear="none" 
class="atl-forced-newline"> <strong>simple</strong> executor does nothing 
special. <br clear="none" class="atl-forced-newline"> <strong>reuse</strong> 
executor reuses prepared statements. <br clear="none" 
class="atl-forced-newline"> <strong>batch</strong> executor reuses statements 
and batches updates.</p></td></tr></tbody></table></div></div><h3 
id="MyBatis-MessageHeaders">Message Headers</h3><p>Camel will populate the 
result message, either IN or OUT with a header with the statement used:</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>CamelMyBatisStatementName</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 <strong>statementName</strong> used 
 >(for example: insertAccount).</p></td></tr><tr><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>CamelMyBatisResult</code></p></td><td 
 >colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>Object</code></p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p>The <strong>response</strong> returned 
 >from MtBatis in any of the operations. For instance an <code>INSERT</code> 
 >could return the auto-gener
 ated key, or number of rows etc.</p></td></tr></tbody></table></div></div><h3 
id="MyBatis-MessageBody">Message Body</h3><p>The response from MyBatis will 
only be set as the body if it's a <code>SELECT</code> statement. That means, 
for example, for <code>INSERT</code> statements Camel will not replace the 
body. This allows you to continue routing and keep the original body. The 
response from MyBatis is always stored in the header with the key 
<code>CamelMyBatisResult</code>.</p><h3 id="MyBatis-Samples">Samples</h3><p>For 
example if you wish to consume beans from a JMS queue and insert them into a 
database you could do the following:</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p>Where <strong>statementName</strong> is the statement name in 
the MyBatis XML mapping file which maps to the query, insert, update or delete 
operation you wish to evaluate.</p><p>You can append query options to the URI 
in the following format, 
<code>?option=value&amp;option=value&amp;...</code></p><p>This component will 
by default load the MyBatis SqlMapConfig file from the root of the classpath 
with the expected name of <code>SqlMapConfig.xml</code>.<br clear="none"> If 
the file is located in another location, you will need to configure the 
<code>configurationUri</code> option on the <code>MyBatisComponent</code> 
component.</p><h3 id="MyBatis-Options">Options</h3><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>Type</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Default</p></th><th colsp
 an="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.onConsume</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Statements to run after consuming. Can be 
used, for example, to update rows after they have been consumed and processed 
in Camel. See sample later. Multiple statements can be separated with 
commas.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.useIterator</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>boolean</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 <code>true</code> each row returned when 
polling will be processed individually. If <code>false</cod
 e> the entire <code>List</code> of data is set as the IN 
body.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>consumer.routeEmptyResultSet</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>boolean</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Sets whether empty result sets should be 
routed.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>statementType</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>StatementType</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Mandatory to specify for the 
producer to control which kind of operation to invoke. The enum values are: 
<code>SelectOne</code>, <code>SelectList</code>, <code>Insert</code>, 
<code>InsertList</code>, <code>Update</code>, <code>Update
 List</code>, <code>Delete</code>, and <code>DeleteList</code>. 
<strong>Notice:</strong> <code>InsertList</code> is available as of Camel 2.10, 
and <code>UpdateList</code>, <code>DeleteList</code> is available as of Camel 
2.11.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>maxMessagesPerPoll</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>int</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>0</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>This option is intended to split results 
returned by the database pool into the batches and deliver them in multiple 
exchanges. This integer defines the maximum messages to deliver in single 
exchange. By default, no maximum is set. Can be used to set a limit of e.g. 
1000 to avoid when starting up the server that there are thousands of files. 
Set a value of 0 or negative to disable it.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p>
 <code>executorType</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>String</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.11:</strong> The executor type to be 
used while executing statements. The supported values are: simple, reuse, 
batch. By default, the value is not specified and is equal to what MyBatis 
uses, i.e. <strong>simple</strong>. <br clear="none" 
class="atl-forced-newline"> <strong>simple</strong> executor does nothing 
special. <br clear="none" class="atl-forced-newline"> <strong>reuse</strong> 
executor reuses prepared statements. <br clear="none" 
class="atl-forced-newline"> <strong>batch</strong> executor reuses statements 
and batches updates.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><code>outputHeader</code></td><td colspan="1" rowspan="1" 
class="confluenceTd"><code>String</code></td><td colspan="1" rowspan="
 1" class="confluenceTd"><code>null</code></td><td colspan="1" rowspan="1" 
class="confluenceTd"><strong>Camel 2.15:</strong><span style="color: 
rgb(0,0,0);">&#160;To store the result as a header instead of the message body. 
This allows to preserve the existing message body 
as-is.</span></td></tr></tbody></table></div></div><h3 
id="MyBatis-MessageHeaders">Message Headers</h3><p>Camel will populate the 
result message, either IN or OUT with a header with the statement used:</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>CamelMyBatisStatementName</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 <strong>statementName</strong> used (for example: 
insertAccount).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>CamelMyBatisResult</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>Object</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>The <strong>response</strong> returned from 
MtBatis in any of the operations. For instance an <code>INSERT</code> could 
return the auto-generated key, or number of rows 
etc.</p></td></tr></tbody></table></div></div><h3 
id="MyBatis-MessageBody">Message Body</h3><p>The response from MyBatis will 
only be set as the body if it's a <code>SELECT</code> statement. That means, 
for example, for <code>INSERT</code> statements Camel will not replace the 
body. This allows you to continue routing and keep the original body. The 
response from MyBatis is always stored in the header with the key 
<code>CamelMyBatisResult</code>.</p><h3 id="MyBatis-Samples">Samples</h3><
 p>For example if you wish to consume beans from a JMS queue and insert them 
into a database you could do the following:</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[from(&quot;activemq:queue:newAccount&quot;).
   to(&quot;mybatis:insertAccount?statementType=Insert&quot;);
 ]]></script>


Reply via email to