Author: buildbot Date: Sat Apr 14 08:20:06 2012 New Revision: 812871 Log: Production update by buildbot for camel
Modified: websites/production/camel/content/cache/main.pageCache websites/production/camel/content/scala-dsl-eip.html websites/production/camel/content/scala-dsl-getting-started.html websites/production/camel/content/scala-dsl.html Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available. Modified: websites/production/camel/content/scala-dsl-eip.html ============================================================================== --- websites/production/camel/content/scala-dsl-eip.html (original) +++ websites/production/camel/content/scala-dsl-eip.html Sat Apr 14 08:20:06 2012 @@ -75,12 +75,17 @@ <tbody> <tr> <td valign="top" width="100%"> -<div class="wiki-content maincontent"><style type="text/css">/*<![CDATA[*/ -div.rbtoc1334387760338 {margin-left: 0px;padding: 0px;} -div.rbtoc1334387760338 ul {list-style: none;margin-left: 0px;} -div.rbtoc1334387760338 li {margin-left: 0px;padding-left: 0px;} +<div class="wiki-content maincontent"><div class="panelMacro"><table class="infoMacro"><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/information.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>DSL supported</b><br clear="none">The <a shape="rect" href="scala-dsl.html" title="Scala DSL">Scala DSL</a> supports <b>every</b> DSL from the <a shape="rect" href="dsl.html" title="DSL">Java DSL</a>. -/*]]>*/</style><div class="rbtoc1334387760338"> +<p>On this page we have examples for a number of the <a shape="rect" href="eip.html" title="EIP">EIP</a>s.<br clear="none"> +You can check the <a shape="rect" class="external-link" href="https://svn.apache.org/repos/asf/camel/trunk/components/camel-scala/src/test/scala/">unit test source code</a> for the Scala Component to find more examples.</p></td></tr></table></div> + +<style type="text/css">/*<![CDATA[*/ +div.rbtoc1334388262189 {margin-left: 0px;padding: 0px;} +div.rbtoc1334388262189 ul {list-style: none;margin-left: 0px;} +div.rbtoc1334388262189 li {margin-left: 0px;padding-left: 0px;} + +/*]]>*/</style><div class="rbtoc1334388262189"> <ul><li><span class="TOCOutline">1</span> <a shape="rect" href="#ScalaDSL-EIP-Messagingsystems">Messaging systems</a></li><ul><li><span class="TOCOutline">1.1</span> <a shape="rect" href="#ScalaDSL-EIP-Pipeline">Pipeline </a></li><li><span class="TOCOutline">1.2</span> <a shape="rect" href="#ScalaDSL-EIP-Filter">Filter </a></li></ul><li><span class="TOCOutline">2</span> <a shape="rect" href="#ScalaDSL-EIP-Messagerouting">Message routing</a></li><ul><li><span class="TOCOutline">2.1</span> <a shape="rect" href="#ScalaDSL-EIP-Aggregator">Aggregator</a></li><li><span class="TOCOutline">2.2</span> <a shape="rect" href="#ScalaDSL-EIP-Contentbasedrouter">Content based router</a></li><li><span class="TOCOutline">2.3</span> <a shape="rect" href="#ScalaDSL-EIP-Delayer">Delayer</a></li><li><span class="TOCOutline">2.4</span> <a shape="rect" href="#ScalaDSL-EIP-Loadbalancer">Load balancer</a></li><li><span class="TOCOutline">2.5</span> <a shape="rect" href="#ScalaDSL-EIP-Multicast">Mult icast</a></li><li><span class="TOCOutline">2.6</span> <a shape="rect" href="#ScalaDSL-EIP-Recipientlist">Recipient list</a></li><li><span class="TOCOutline">2.7</span> <a shape="rect" href="#ScalaDSL-EIP-Resequencer">Resequencer</a></li><li><span class="TOCOutline">2.8</span> <a shape="rect" href="#ScalaDSL-EIP-Splitter">Splitter</a></li><li><span class="TOCOutline">2.9</span> <a shape="rect" href="#ScalaDSL-EIP-Throttler">Throttler</a></li></ul><li><span class="TOCOutline">3</span> <a shape="rect" href="#ScalaDSL-EIP-Messagetransformation">Message transformation</a></li><ul><li><span class="TOCOutline">3.1</span> <a shape="rect" href="#ScalaDSL-EIP-Contentenricher">Content enricher</a></li></ul></ul></div> <h3><a shape="rect" name="ScalaDSL-EIP-Messagingsystems"></a>Messaging systems</h3> @@ -303,8 +308,7 @@ div.rbtoc1334387760338 li {margin-left: <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> <pre class="code-java"><span class="code-quote">"direct:c"</span> to (<span class="code-quote">"velocity:org/apache/camel/scala/dsl/enricher.vm"</span>) to (<span class="code-quote">"mock:c"</span>) </pre> -</div></div> -</div> +</div></div></div> </td> <td valign="top"> <div class="navigation"> Modified: websites/production/camel/content/scala-dsl-getting-started.html ============================================================================== --- websites/production/camel/content/scala-dsl-getting-started.html (original) +++ websites/production/camel/content/scala-dsl-getting-started.html Sat Apr 14 08:20:06 2012 @@ -87,7 +87,26 @@ <p>If you compare this to the Java <a shape="rect" href="dsl.html" title="DSL">DSL</a>, you notice:</p> <ul><li>there is no configure() method to override</li><li>a route starts directly with a URI instead of <tt>from(uri)</tt></li><li><tt>→</tt> is just an alias for <tt>to</tt></li></ul> -</div> + +<h3><a shape="rect" name="ScalaDSL-GettingStarted-CreatinganewCamelScalaproject"></a>Creating a new Camel Scala project</h3> +<p>Camel offers <a shape="rect" href="camel-maven-archetypes.html" title="Camel Maven Archetypes">Maven archetypes</a> which allows you to quickly setup a new project. </p> + +<p>To do this you can use Maven an execute the following from the command line (using Maven 3.0.3 or better)</p> +<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> +<pre class="code-java"> +mvn archetype:generate +</pre> +</div></div> + +<p>This runs Maven in interactive mode, and then type camel and pres enter. This filters the list to only Camel related.<br clear="none"> +And from the list pick the number for the <tt>camel-archetype-scala</tt>. And then fill in details from there, such as the Camel version etc.</p> + +<p>The project created has a readme file with more instructions, and is read to compile and run from mvn as well using</p> +<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent"> +<pre class="code-java"> +mvn compile +</pre> +</div></div></div> </td> <td valign="top"> <div class="navigation"> Modified: websites/production/camel/content/scala-dsl.html ============================================================================== --- websites/production/camel/content/scala-dsl.html (original) +++ websites/production/camel/content/scala-dsl.html Sat Apr 14 08:20:06 2012 @@ -79,11 +79,11 @@ <p><a shape="rect" class="external-link" href="http://www.scala-lang.org/" rel="nofollow">Scala</a> is a general purpose programming language designed to express common programming patterns in a concise, elegant, and type-safe way. It integrates very well with the Java platform. Our Scala DSL implementation is built on top of the existing Java-based <a shape="rect" href="dsl.html" title="DSL">DSL</a>, but it adds Scala syntax sugar to make building routes even more convenient.</p> <h3><a shape="rect" name="ScalaDSL-Documentation"></a>Documentation</h3> -<ul><li><a shape="rect" href="scala-dsl-getting-started.html" title="Scala DSL - Getting Started">Scala DSL - Getting Started</a> gives you basic information on how to use the Scala DSL.</li><li><a shape="rect" href="scala-dsl-eip.html" title="Scala DSL - EIP">Scala DSL - EIP</a> shows you the Scala DSL syntax for every EIP supported</li><li><a shape="rect" href="scala-dsl-supported-languages.html" title="Scala DSL - Supported languages">Scala DSL - Supported languages</a> explains the usage of traits to add support for other languages (e.g. XPath)</li></ul> +<ul><li><a shape="rect" href="scala-dsl-getting-started.html" title="Scala DSL - Getting Started">Scala DSL - Getting Started</a> gives you basic information on how to use the Scala DSL.</li><li><a shape="rect" href="scala-dsl-eip.html" title="Scala DSL - EIP">Scala DSL - EIP</a> shows you the Scala DSL syntax for every EIP supported. <a shape="rect" href="scala-dsl.html" title="Scala DSL">Scala DSL</a> supports every EIP from the <a shape="rect" href="dsl.html" title="DSL">Java DSL</a>.</li><li><a shape="rect" href="scala-dsl-supported-languages.html" title="Scala DSL - Supported languages">Scala DSL - Supported languages</a> explains the usage of traits to add support for other languages (e.g. XPath)</li></ul> <h3><a shape="rect" name="ScalaDSL-References"></a>References</h3> -<ul><li>At <a shape="rect" class="external-link" href="http://www.eu.apachecon.com" rel="nofollow">ApacheCon Europe 2008</a> there was a Fast Feather talk that introduced some of the basic Scala language concepts that are being used for building the Scala DSL. <a shape="rect" class="external-link" href="http://www.anova.be/files/camel-scala.pdf" rel="nofollow">Here are the presentation slides</a> .</li></ul> +<ul><li>At <a shape="rect" class="external-link" href="http://www.eu.apachecon.com" rel="nofollow">ApacheCon Europe 2008</a> there was a Fast Feather talk that introduced some of the basic Scala language concepts that are being used for building the Scala DSL. <a shape="rect" class="external-link" href="http://www.anova.be/files/camel-scala.pdf" rel="nofollow">Here are the presentation slides</a> .</li><li>And here is a little <a shape="rect" class="external-link" href="http://davsclaus.blogspot.se/2011/12/apache-camel-little-scala-dsl-example.html" rel="nofollow">blog entry</a> how showing a <a shape="rect" href="message-filter.html" title="Message Filter">Message Filter</a> EIP example with the <a shape="rect" href="scala-dsl.html" title="Scala DSL">Scala DSL</a> and how to use the <a shape="rect" href="camel-test.html" title="Camel Test">Camel Test</a> kit to test the example.</li></ul> <h3><a shape="rect" name="ScalaDSL-Dependencies"></a>Dependencies</h3> @@ -97,7 +97,7 @@ <span class="code-tag"><dependency></span> <span class="code-tag"><groupId></span>org.apache.camel<span class="code-tag"></groupId></span> <span class="code-tag"><artifactId></span>camel-scala<span class="code-tag"></artifactId></span> - <span class="code-tag"><version></span>2.8.0<span class="code-tag"></version></span> + <span class="code-tag"><version></span>2.9.0<span class="code-tag"></version></span> <span class="code-tag"></dependency></span> </pre> </div></div></div>