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

svn commit: r820463 - in /websites/production/camel/content: cache/main.pageCache springbatch.html

Author: buildbot
Date: Wed Jun  6 11:18:23 2012
New Revision: 820463

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/springbatch.html

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

Modified: websites/production/camel/content/springbatch.html
==============================================================================
--- websites/production/camel/content/springbatch.html (original)
+++ websites/production/camel/content/springbatch.html Wed Jun  6 11:18:23 2012
@@ -64,7 +64,7 @@
         <div class="top_red_bar">
           <div id="site-breadcrumbs">
                 <!-- Breadcrumbs -->
-<a href="index.html">Apache Camel</a>&nbsp;&gt;&nbsp;<a href="documentation.html">Documentation</a>&nbsp;&gt;&nbsp;<a href="components.html">Components</a>&nbsp;&gt;&nbsp;<a href="springintegration.html">SpringIntegration</a>&nbsp;&gt;&nbsp;<a href="springbatch.html">SpringBatch</a>
+<a href="index.html">Apache Camel</a>&nbsp;&gt;&nbsp;<a href="documentation.html">Documentation</a>&nbsp;&gt;&nbsp;<a href="components.html">Components</a>&nbsp;&gt;&nbsp;<a href="springbatch.html">SpringBatch</a>
           </div>
           <!-- Quicklinks -->
 <div id="site-quicklinks"><p><a shape="rect" href="download.html" title="Download">Download</a> | <a shape="rect" href="javadoc.html" title="JavaDoc">JavaDoc</a> | <a shape="rect" href="source.html" title="Source">Source</a> | <a shape="rect" href="discussion-forums.html" title="Discussion Forums">Forums</a> | <a shape="rect" href="support.html" title="Support">Support</a></p></div>
@@ -98,12 +98,25 @@
 spring-batch:jobName[?options]
 </pre>
 </div></div>
-<p>Where <b>jobName</b> represents the name of the Spring Batch job located in the Camel registry. The job will be executed using the <tt>org.springframework.batch.core.launch.JobLaucher</tt> instance resolved using the following algorithm:</p>
-<ul><li>TODO</li></ul>
+<p>Where <b>jobName</b> represents the name of the Spring Batch job located in the Camel registry.</p>
 
+<div class="panelMacro"><table class="warningMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/forbidden.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1">This component can only be used to define producer endpoints, which means that you cannot use the Spring Batch component in a <tt>from()</tt> statement.</td></tr></table></div>
 
+<h3><a shape="rect" name="SpringBatch-Jobexecution"></a>Job execution</h3>
 
-<div class="panelMacro"><table class="warningMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/forbidden.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1">This component can only be used to define producer endpoints, which means that you cannot use the Spring Batch component in a <tt>from()</tt> statement.</td></tr></table></div></div>
+<p>When Spring Batch component receives the message, it triggers the job execution. The job will be executed using the <tt>org.springframework.batch.core.launch.JobLaucher</tt> instance resolved according to the following algorithm:</p>
+<ul><li>if <tt>JobLauncher</tt> is manually set on the component, then use it.</li><li>if <tt>jobLauncherRef</tt> option is set on the component, then search Camel Registry for the <tt>JobLauncher</tt> with the given name.</li><li>if there is <tt>JobLauncher</tt> registered in the Camel Registry under <b>jobLauncher</b> name, then use it.</li><li>if none of the steps above allow to resolve the <tt>JobLauncher</tt> and there is exactly one <tt>JobLauncher</tt> instance in the Camel Registry, then use it.</li></ul>
+
+
+<p>All headers found in the message are passed to the <tt>JobLauncher</tt> as job parameters. <tt>String</tt>, <tt>Long</tt>, <tt>Double</tt> and <tt>java.util.Date</tt> values are copied to the <tt>org.springframework.batch.core.JobParametersBuilder</tt> - other data types are converted to Strings.</p>
+
+<h3><a shape="rect" name="SpringBatch-Options"></a>Options</h3>
+
+<div class="table-wrap">
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Name </th><th colspan="1" rowspan="1" class="confluenceTh"> Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> <tt>jobLauncherRef</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> Explicitly specifies the name of the <tt>JobLauncher</tt> to be used.</td></tr></tbody></table>
+</div>
+
+</div>
         </td>
         <td valign="top">
           <div class="navigation">