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 2013/01/31 12:24:40 UTC

svn commit: r848743 - /websites/production/camel/content/

Author: buildbot
Date: Thu Jan 31 11:24:40 2013
New Revision: 848743

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/beanshell.html
    websites/production/camel/content/book-languages-appendix.html
    websites/production/camel/content/groovy.html
    websites/production/camel/content/javascript.html
    websites/production/camel/content/jxpath.html
    websites/production/camel/content/mvel.html
    websites/production/camel/content/ognl.html
    websites/production/camel/content/php.html
    websites/production/camel/content/python.html
    websites/production/camel/content/ruby.html
    websites/production/camel/content/scripting-languages-context.html
    websites/production/camel/content/scripting-languages.html
    websites/production/camel/content/simple.html
    websites/production/camel/content/spel.html
    websites/production/camel/content/sql.html
    websites/production/camel/content/xpath.html
    websites/production/camel/content/xquery.html

Modified: websites/production/camel/content/beanshell.html
==============================================================================
--- websites/production/camel/content/beanshell.html (original)
+++ websites/production/camel/content/beanshell.html Thu Jan 31 11:24:40 2013
@@ -205,6 +205,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="BeanShell-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BeanShell-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>

Modified: websites/production/camel/content/book-languages-appendix.html
==============================================================================
--- websites/production/camel/content/book-languages-appendix.html (original)
+++ websites/production/camel/content/book-languages-appendix.html Thu Jan 31 11:24:40 2013
@@ -410,6 +410,19 @@ from(<span class="code-quote">"queue:foo
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="BookLanguagesAppendix-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).jxpath(<span class="code-quote">"resource:classpath:myjxpath.txt"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BookLanguagesAppendix-Dependencies"></a>Dependencies</h3>
 
 <p>To use JXpath in your camel routes you need to add the a dependency on <b>camel-jxpath</b> which implements the JXpath language. </p>
@@ -471,6 +484,18 @@ from(<span class="code-quote">"queue:foo
 </pre>
 </div></div>
 
+<h3><a shape="rect" name="BookLanguagesAppendix-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).mvel(<span class="code-quote">"resource:classpath:script.mvel"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BookLanguagesAppendix-Dependencies"></a>Dependencies</h3>
 
 <p>To use Mvel in your camel routes you need to add the a dependency on <b>camel-mvel</b> which implements the Mvel language. </p>
@@ -532,6 +557,18 @@ from(<span class="code-quote">"queue:foo
 </pre>
 </div></div>
 
+<h3><a shape="rect" name="BookLanguagesAppendix-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).ognl(<span class="code-quote">"resource:classpath:myognl.txt"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BookLanguagesAppendix-Dependencies"></a>Dependencies</h3>
 
 <p>To use OGNL in your camel routes you need to add the a dependency on <b>camel-ognl</b> which implements the OGNL language. </p>
@@ -700,6 +737,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="BookLanguagesAppendix-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BookLanguagesAppendix-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>
@@ -851,6 +901,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="BookLanguagesAppendix-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BookLanguagesAppendix-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>
@@ -1012,6 +1075,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="BookLanguagesAppendix-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BookLanguagesAppendix-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>
@@ -1165,6 +1241,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="BookLanguagesAppendix-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BookLanguagesAppendix-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>
@@ -1326,6 +1415,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="BookLanguagesAppendix-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BookLanguagesAppendix-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>
@@ -1457,6 +1559,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="BookLanguagesAppendix-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BookLanguagesAppendix-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>
@@ -1618,6 +1733,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="BookLanguagesAppendix-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="BookLanguagesAppendix-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>
@@ -1638,7 +1766,7 @@ For example to set a header name myHeade
 <p>The Simple Expression Language was a really simple language you can use, but has since grown more powerful. Its primarily intended for being a really small and simple language for evaluating <a shape="rect" href="expression.html" title="Expression">Expression</a> and <a shape="rect" href="predicate.html" title="Predicate">Predicate</a> without requiring any new dependencies or knowledge of <a shape="rect" href="xpath.html" title="XPath">XPath</a>; so its ideal for testing in camel-core. Its ideal to cover 95% of the common use cases when you need a little bit of expression based script in your Camel routes.</p>
 
 <p>However for much more complex use cases you are generally recommended to choose a more expressive and powerful language such as: </p>
-<ul><li><a shape="rect" href="javascript.html" title="JavaScript">JavaScript</a></li><li><a shape="rect" href="el.html" title="EL">EL</a></li><li><a shape="rect" href="ognl.html" title="OGNL">OGNL</a></li><li><a shape="rect" href="mvel.html" title="Mvel">Mvel</a></li><li><a shape="rect" href="groovy.html" title="Groovy">Groovy</a></li><li>one of the supported <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a></li></ul>
+<ul><li><a shape="rect" href="spel.html" title="SpEL">SpEL</a></li><li><a shape="rect" href="mvel.html" title="Mvel">Mvel</a></li><li><a shape="rect" href="groovy.html" title="Groovy">Groovy</a></li><li><a shape="rect" href="javascript.html" title="JavaScript">JavaScript</a></li><li><a shape="rect" href="el.html" title="EL">EL</a></li><li><a shape="rect" href="ognl.html" title="OGNL">OGNL</a></li><li>one of the supported <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a></li></ul>
 
 
 <p>The simple language uses <tt>${body</tt>} placeholders for complex expressions where the expression contains constant literals. The ${ } placeholders can be omitted if the expression is only the token itself.</p>
@@ -2099,6 +2227,17 @@ If the header is not convertible to Map 
 <p>Notice by changing the start/end token you change those in all the Camel applications which share the same <b>camel-core</b> on their classpath.<br clear="none">
 For example in an OSGi server this may affect many applications, where as a Web Application as a WAR file it only affects the Web Application.</p>
 
+<h3><a shape="rect" name="BookLanguagesAppendix-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).simple(<span class="code-quote">"resource:classpath:mysimple.txt"</span>)
+</pre>
+</div></div>
+
 <h3><a shape="rect" name="BookLanguagesAppendix-Dependencies"></a>Dependencies</h3>
 <p>The <a shape="rect" href="simple.html" title="Simple">Simple</a> language is part of <b>camel-core</b>.</p>
 <h2><a shape="rect" name="BookLanguagesAppendix-FileExpressionLanguage"></a>File Expression Language</h2>
@@ -2282,6 +2421,18 @@ from(<span class="code-quote">"queue:foo
 </div>
 
 
+<h3><a shape="rect" name="BookLanguagesAppendix-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).sql(<span class="code-quote">"resource:classpath:mysql.sql"</span>)
+</pre>
+</div></div>
+
+
 <h2><a shape="rect" name="BookLanguagesAppendix-XPath"></a>XPath</h2>
 
 <p>Camel supports <a shape="rect" class="external-link" href="http://www.w3.org/TR/xpath" rel="nofollow">XPath</a> to allow an <a shape="rect" href="expression.html" title="Expression">Expression</a> or <a shape="rect" href="predicate.html" title="Predicate">Predicate</a> to be used in the <a shape="rect" href="dsl.html" title="DSL">DSL</a> or <a shape="rect" href="xml-configuration.html" title="Xml Configuration">Xml Configuration</a>. For example you could use XPath to create an <a shape="rect" href="predicate.html" title="Predicate">Predicate</a> in a <a shape="rect" href="message-filter.html" title="Message Filter">Message Filter</a> or as an <a shape="rect" href="expression.html" title="Expression">Expression</a> for a <a shape="rect" href="recipient-list.html" title="Recipient List">Recipient List</a>.</p>
@@ -2782,6 +2933,17 @@ XPathBuilder.xpath(<span class="code-quo
 </pre>
 </div></div>
 
+<h3><a shape="rect" name="BookLanguagesAppendix-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).xpath(<span class="code-quote">"resource:classpath:myxpath.txt"</span>, <span class="code-object">String</span>.class)
+</pre>
+</div></div>
+
 <h3><a shape="rect" name="BookLanguagesAppendix-Dependencies"></a>Dependencies</h3>
 <p>The XPath language is part of camel-core.</p>
 <h2><a shape="rect" name="BookLanguagesAppendix-XQuery"></a>XQuery</h2>
@@ -2905,6 +3067,17 @@ from(<span class="code-quote">"direct:st
 
 <p>You might also find the <a shape="rect" class="external-link" href="http://www.w3.org/TR/xpath-functions/" rel="nofollow">XQuery function reference</a> useful</p>
 
+<h3><a shape="rect" name="BookLanguagesAppendix-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).xquery(<span class="code-quote">"resource:classpath:myxquery.txt"</span>, <span class="code-object">String</span>.class)
+</pre>
+</div></div>
+
 <h3><a shape="rect" name="BookLanguagesAppendix-Dependencies"></a>Dependencies</h3>
 
 <p>To use XQuery in your camel routes you need to add the a dependency on <b>camel-saxon</b> which implements the XQuery language. </p>

Modified: websites/production/camel/content/groovy.html
==============================================================================
--- websites/production/camel/content/groovy.html (original)
+++ websites/production/camel/content/groovy.html Thu Jan 31 11:24:40 2013
@@ -213,6 +213,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="Groovy-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="Groovy-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>

Modified: websites/production/camel/content/javascript.html
==============================================================================
--- websites/production/camel/content/javascript.html (original)
+++ websites/production/camel/content/javascript.html Thu Jan 31 11:24:40 2013
@@ -221,6 +221,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="JavaScript-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="JavaScript-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>

Modified: websites/production/camel/content/jxpath.html
==============================================================================
--- websites/production/camel/content/jxpath.html (original)
+++ websites/production/camel/content/jxpath.html Thu Jan 31 11:24:40 2013
@@ -150,6 +150,19 @@ from(<span class="code-quote">"queue:foo
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="JXPath-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).jxpath(<span class="code-quote">"resource:classpath:myjxpath.txt"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="JXPath-Dependencies"></a>Dependencies</h3>
 
 <p>To use JXpath in your camel routes you need to add the a dependency on <b>camel-jxpath</b> which implements the JXpath language. </p>

Modified: websites/production/camel/content/mvel.html
==============================================================================
--- websites/production/camel/content/mvel.html (original)
+++ websites/production/camel/content/mvel.html Thu Jan 31 11:24:40 2013
@@ -119,6 +119,18 @@
 </pre>
 </div></div>
 
+<h3><a shape="rect" name="Mvel-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).mvel(<span class="code-quote">"resource:classpath:script.mvel"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="Mvel-Dependencies"></a>Dependencies</h3>
 
 <p>To use Mvel in your camel routes you need to add the a dependency on <b>camel-mvel</b> which implements the Mvel language. </p>

Modified: websites/production/camel/content/ognl.html
==============================================================================
--- websites/production/camel/content/ognl.html (original)
+++ websites/production/camel/content/ognl.html Thu Jan 31 11:24:40 2013
@@ -119,6 +119,18 @@
 </pre>
 </div></div>
 
+<h3><a shape="rect" name="OGNL-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).ognl(<span class="code-quote">"resource:classpath:myognl.txt"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="OGNL-Dependencies"></a>Dependencies</h3>
 
 <p>To use OGNL in your camel routes you need to add the a dependency on <b>camel-ognl</b> which implements the OGNL language. </p>

Modified: websites/production/camel/content/php.html
==============================================================================
--- websites/production/camel/content/php.html (original)
+++ websites/production/camel/content/php.html Thu Jan 31 11:24:40 2013
@@ -191,6 +191,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="PHP-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="PHP-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>

Modified: websites/production/camel/content/python.html
==============================================================================
--- websites/production/camel/content/python.html (original)
+++ websites/production/camel/content/python.html Thu Jan 31 11:24:40 2013
@@ -221,6 +221,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="Python-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="Python-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>

Modified: websites/production/camel/content/ruby.html
==============================================================================
--- websites/production/camel/content/ruby.html (original)
+++ websites/production/camel/content/ruby.html Thu Jan 31 11:24:40 2013
@@ -221,6 +221,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="Ruby-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="Ruby-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>

Modified: websites/production/camel/content/scripting-languages-context.html
==============================================================================
--- websites/production/camel/content/scripting-languages-context.html (original)
+++ websites/production/camel/content/scripting-languages-context.html Thu Jan 31 11:24:40 2013
@@ -177,6 +177,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="ScriptingLanguagesContext-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="ScriptingLanguagesContext-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>

Modified: websites/production/camel/content/scripting-languages.html
==============================================================================
--- websites/production/camel/content/scripting-languages.html (original)
+++ websites/production/camel/content/scripting-languages.html Thu Jan 31 11:24:40 2013
@@ -190,6 +190,19 @@ For example to set a header name myHeade
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="ScriptingLanguages-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).groovy(<span class="code-quote">"resource:classpath:mygroovy.groovy"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="ScriptingLanguages-Dependencies"></a>Dependencies</h3>
 
 <p>To use scripting languages in your camel routes you need to add the a dependency on <b>camel-script</b> which integrates the JSR-223 scripting engine. </p>

Modified: websites/production/camel/content/simple.html
==============================================================================
--- websites/production/camel/content/simple.html (original)
+++ websites/production/camel/content/simple.html Thu Jan 31 11:24:40 2013
@@ -80,7 +80,7 @@
 <p>The Simple Expression Language was a really simple language you can use, but has since grown more powerful. Its primarily intended for being a really small and simple language for evaluating <a shape="rect" href="expression.html" title="Expression">Expression</a> and <a shape="rect" href="predicate.html" title="Predicate">Predicate</a> without requiring any new dependencies or knowledge of <a shape="rect" href="xpath.html" title="XPath">XPath</a>; so its ideal for testing in camel-core. Its ideal to cover 95% of the common use cases when you need a little bit of expression based script in your Camel routes.</p>
 
 <p>However for much more complex use cases you are generally recommended to choose a more expressive and powerful language such as: </p>
-<ul><li><a shape="rect" href="javascript.html" title="JavaScript">JavaScript</a></li><li><a shape="rect" href="el.html" title="EL">EL</a></li><li><a shape="rect" href="ognl.html" title="OGNL">OGNL</a></li><li><a shape="rect" href="mvel.html" title="Mvel">Mvel</a></li><li><a shape="rect" href="groovy.html" title="Groovy">Groovy</a></li><li>one of the supported <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a></li></ul>
+<ul><li><a shape="rect" href="spel.html" title="SpEL">SpEL</a></li><li><a shape="rect" href="mvel.html" title="Mvel">Mvel</a></li><li><a shape="rect" href="groovy.html" title="Groovy">Groovy</a></li><li><a shape="rect" href="javascript.html" title="JavaScript">JavaScript</a></li><li><a shape="rect" href="el.html" title="EL">EL</a></li><li><a shape="rect" href="ognl.html" title="OGNL">OGNL</a></li><li>one of the supported <a shape="rect" href="scripting-languages.html" title="Scripting Languages">Scripting Languages</a></li></ul>
 
 
 <p>The simple language uses <tt>${body</tt>} placeholders for complex expressions where the expression contains constant literals. The ${ } placeholders can be omitted if the expression is only the token itself.</p>
@@ -541,6 +541,17 @@ If the header is not convertible to Map 
 <p>Notice by changing the start/end token you change those in all the Camel applications which share the same <b>camel-core</b> on their classpath.<br clear="none">
 For example in an OSGi server this may affect many applications, where as a Web Application as a WAR file it only affects the Web Application.</p>
 
+<h3><a shape="rect" name="Simple-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).simple(<span class="code-quote">"resource:classpath:mysimple.txt"</span>)
+</pre>
+</div></div>
+
 <h3><a shape="rect" name="Simple-Dependencies"></a>Dependencies</h3>
 <p>The <a shape="rect" href="simple.html" title="Simple">Simple</a> language is part of <b>camel-core</b>.</p></div>
         </td>

Modified: websites/production/camel/content/spel.html
==============================================================================
--- websites/production/camel/content/spel.html (original)
+++ websites/production/camel/content/spel.html Thu Jan 31 11:24:40 2013
@@ -142,6 +142,19 @@ template.sendBodyAndHeader(<span class="
 </pre>
 </div></div>
 
+
+<h3><a shape="rect" name="SpEL-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).spel(<span class="code-quote">"resource:classpath:myspel.txt"</span>)
+</pre>
+</div></div>
+
+
 <h3><a shape="rect" name="SpEL-Dependencies"></a>Dependencies</h3>
 
 <p>You need Spring 3.0 or higher to use Spring Expression Language. If you use Maven you could just add the following to your <tt>pom.xml</tt>:</p>

Modified: websites/production/camel/content/sql.html
==============================================================================
--- websites/production/camel/content/sql.html (original)
+++ websites/production/camel/content/sql.html Thu Jan 31 11:24:40 2013
@@ -120,6 +120,18 @@ from(<span class="code-quote">"queue:foo
 <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Variable </th><th colspan="1" rowspan="1" class="confluenceTh"> Type </th><th colspan="1" rowspan="1" class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> exchange </td><td colspan="1" rowspan="1" class="confluenceTd"> Exchange </td><td colspan="1" rowspan="1" class="confluenceTd"> the Exchange object </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> in </td><td colspan="1" rowspan="1" class="confluenceTd"> Message </td><td colspan="1" rowspan="1" class="confluenceTd"> the exchange.in message </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> out </td><td colspan="1" rowspan="1" class="confluenceTd"> Message </td><td colspan="1" rowspan="1" class="confluenceTd"> the exchange.out message </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> the property key </td><td colspan="1" rowspan="1" class="confluen
 ceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> the Exchange properties </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> the header key </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> the exchange.in headers </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> the variable key </td><td colspan="1" rowspan="1" class="confluenceTd"> Object </td><td colspan="1" rowspan="1" class="confluenceTd"> if any additional variables is added using <tt>setVariables</tt> method </td></tr></tbody></table>
 </div>
 
+
+<h3><a shape="rect" name="SQL-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).sql(<span class="code-quote">"resource:classpath:mysql.sql"</span>)
+</pre>
+</div></div>
+
 </div>
         </td>
         <td valign="top">

Modified: websites/production/camel/content/xpath.html
==============================================================================
--- websites/production/camel/content/xpath.html (original)
+++ websites/production/camel/content/xpath.html Thu Jan 31 11:24:40 2013
@@ -575,6 +575,17 @@ XPathBuilder.xpath(<span class="code-quo
 </pre>
 </div></div>
 
+<h3><a shape="rect" name="XPath-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).xpath(<span class="code-quote">"resource:classpath:myxpath.txt"</span>, <span class="code-object">String</span>.class)
+</pre>
+</div></div>
+
 <h3><a shape="rect" name="XPath-Dependencies"></a>Dependencies</h3>
 <p>The XPath language is part of camel-core.</p></div>
         </td>

Modified: websites/production/camel/content/xquery.html
==============================================================================
--- websites/production/camel/content/xquery.html (original)
+++ websites/production/camel/content/xquery.html Thu Jan 31 11:24:40 2013
@@ -196,6 +196,17 @@ from(<span class="code-quote">"direct:st
 
 <p>You might also find the <a shape="rect" class="external-link" href="http://www.w3.org/TR/xpath-functions/" rel="nofollow">XQuery function reference</a> useful</p>
 
+<h3><a shape="rect" name="XQuery-Loadingscriptfromexternalresource"></a>Loading script from external resource</h3>
+<p><b>Available as of Camel 2.11</b></p>
+
+<p>You can externalize the script and have Camel load it from a resource such as <tt>"classpath:"</tt>, <tt>"file:"</tt>, or <tt>"http:"</tt>.<br clear="none">
+This is done using the following syntax: <tt>"resource:scheme:location"</tt>, eg to refer to a file on the classpath you can do:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+.setHeader(<span class="code-quote">"myHeader"</span>).xquery(<span class="code-quote">"resource:classpath:myxquery.txt"</span>, <span class="code-object">String</span>.class)
+</pre>
+</div></div>
+
 <h3><a shape="rect" name="XQuery-Dependencies"></a>Dependencies</h3>
 
 <p>To use XQuery in your camel routes you need to add the a dependency on <b>camel-saxon</b> which implements the XQuery language. </p>