Author: buildbot
Date: Wed Jun  5 13:20:16 2013
New Revision: 864531

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  5 13:20:16 2013
@@ -135,6 +135,18 @@ from(<span class="code-quote">"direct:st
 </pre>
 </div></div>
 
+<p>Starting from the Camel <b>2.11.1</b> <tt>JobExecution</tt> instance 
returned by the <tt>JobLauncher</tt> is forwarded by the 
<tt>SpringBatchProducer</tt> as the output message. You can use the 
<tt>JobExecution</tt> instance to perform some operations using the Spring 
Batch API directly.</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<pre class="code-java">
+from(<span class="code-quote">"direct:startBatch"</span>).to(<span 
class="code-quote">"spring-batch:myJob"</span>).to(<span 
class="code-quote">"mock:JobExecutions"</span>);
+...
+MockEndpoint mockEndpoint = ...;
+JobExecution jobExecution = 
mockEndpoint.getExchanges().get(0).getIn().getBody(JobExecution.class);
+BatchStatus currentJobStatus = jobExecution.getStatus();
+</pre>
+</div></div>
+
 <h3><a shape="rect" name="SpringBatch-Supportclasses"></a>Support classes</h3>
 
 <p>Apart from the Component, Camel Spring Batch provides also support classes, 
which can be used to hook into Spring Batch infrastructure.</p>


Reply via email to