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/11/25 19:18:08 UTC

svn commit: r839540 - in /websites/production/camel/content: cache/main.pageCache controlbus-component.html controlbus.html

Author: buildbot
Date: Sun Nov 25 18:18:08 2012
New Revision: 839540

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/controlbus-component.html
    websites/production/camel/content/controlbus.html

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

Modified: websites/production/camel/content/controlbus-component.html
==============================================================================
--- websites/production/camel/content/controlbus-component.html (original)
+++ websites/production/camel/content/controlbus-component.html Sun Nov 25 18:18:08 2012
@@ -140,6 +140,14 @@ template.sendBody(<span class="code-quot
 
 <p><b>Notice:</b> its easier to use the <tt>route</tt> command to contro lifecycle of routes. Though the <tt>language</tt> command allows to execute a language script which has stronger powers such as <a shape="rect" href="groovy.html" title="Groovy">Groovy</a> or to some extend the <a shape="rect" href="simple.html" title="Simple">Simple</a> language. </p>
 
+<p>For example to shutdown Camel itself you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+template.sendBody(<span class="code-quote">"controlbus:language:simple?async=<span class="code-keyword">true</span>"</span>, <span class="code-quote">"${camelContext.stop()}"</span>);
+</pre>
+</div></div>
+<p>Notice we use <tt>async=true</tt> to stop Camel asynchronously as otherwise we would be trying to stop Camel while it was in-flight processing the message we sent to the control bus component.</p>
+
 <div class="panelMacro"><table class="tipMacro"><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/check.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1">You can also use other languages such as <a shape="rect" href="groovy.html" title="Groovy">Groovy</a> etc.</td></tr></table></div>
 
 <h3><a shape="rect" name="ControlBusComponent-SeeAlso"></a>See Also</h3>

Modified: websites/production/camel/content/controlbus.html
==============================================================================
--- websites/production/camel/content/controlbus.html (original)
+++ websites/production/camel/content/controlbus.html Sun Nov 25 18:18:08 2012
@@ -152,6 +152,14 @@ template.sendBody(<span class="code-quot
 
 <p><b>Notice:</b> its easier to use the <tt>route</tt> command to contro lifecycle of routes. Though the <tt>language</tt> command allows to execute a language script which has stronger powers such as <a shape="rect" href="groovy.html" title="Groovy">Groovy</a> or to some extend the <a shape="rect" href="simple.html" title="Simple">Simple</a> language. </p>
 
+<p>For example to shutdown Camel itself you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+template.sendBody(<span class="code-quote">"controlbus:language:simple?async=<span class="code-keyword">true</span>"</span>, <span class="code-quote">"${camelContext.stop()}"</span>);
+</pre>
+</div></div>
+<p>Notice we use <tt>async=true</tt> to stop Camel asynchronously as otherwise we would be trying to stop Camel while it was in-flight processing the message we sent to the control bus component.</p>
+
 <div class="panelMacro"><table class="tipMacro"><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/check.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1">You can also use other languages such as <a shape="rect" href="groovy.html" title="Groovy">Groovy</a> etc.</td></tr></table></div>
 
 <h3><a shape="rect" name="ControlBus-SeeAlso"></a>See Also</h3>