Author: buildbot
Date: Sat Apr 14 07:21:04 2012
New Revision: 812867
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-supported-languages.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 07:21:04 2012
@@ -76,12 +76,12 @@
<tr>
<td valign="top" width="100%">
<div class="wiki-content maincontent"><style type="text/css">/*<![CDATA[*/
-div.rbtoc1247582928437 {margin-left: 0px;padding: 0px;}
-div.rbtoc1247582928437 ul {list-style: none;margin-left: 0px;}
-div.rbtoc1247582928437 li {margin-left: 0px;padding-left: 0px;}
+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;}
-/*]]>*/</style><div class="rbtoc1247582928437">
-<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><li><span
class="TOCOutline">4</span> <a shape="rect" href="#ScalaDSL-EIP-TODO">TODO</a></li></ul></div>
+/*]]>*/</style><div class="rbtoc1334387760338">
+<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>
<h4><a shape="rect" name="ScalaDSL-EIP-Pipeline"></a>Pipeline <a shape="rect"
name="ScalaDSL-EIP-pipeline"></a></h4>
@@ -127,8 +127,7 @@ div.rbtoc1247582928437 li {margin-left:
<h3><a shape="rect" name="ScalaDSL-EIP-Messagerouting"></a>Message routing</h3>
<h4><a shape="rect" name="ScalaDSL-EIP-Aggregator"></a>Aggregator</h4>
-<p>The aggregator EIP aggregates messages based on some message correlation criteria.
In the Scala DSL, the <tt>aggregate</tt> method takes a function <tt>Exchange
⇒ Any</tt> to determine the correlation value for the exchange. In both samples
below, message are being aggregated if the first 7 letters in the message body are the same.</p>
-<div class="error"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException:
Index: 20, Size: 20</span> </div>
+<p>The aggregator EIP aggregates messages based on some message correlation criteria.
In the Scala DSL, the <tt>aggregate</tt> method takes a function <tt>Exchange
⇒ Any</tt> to determine the correlation value for the exchange. In the sample
below, message are being aggregated if the first 7 letters in the message body are the same.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java"><span class="code-quote">"direct:b"</span> ==>
{
aggregate(_.in[<span class="code-object">String</span>].substring(0,7), <span
class="code-keyword">new</span> UseLatestAggregationStrategy()).completionSize(100)
{
@@ -192,8 +191,6 @@ div.rbtoc1247582928437 li {margin-left:
<span class="code-quote">"direct:d"</span> to (<span class="code-quote">"mock:d"</span>,
<span class="code-quote">"mock:e"</span>) to <span class="code-quote">"mock:f"</span>
</pre>
</div></div>
-<p>You can also explicitly define an explicit <tt>multicast</tt> in your
<tt>RouteBuilder</tt>:</p>
-<div class="error"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException:
Index: 20, Size: 20</span> </div>
<h4><a shape="rect" name="ScalaDSL-EIP-Recipientlist"></a>Recipient list</h4>
<p>You can handle a static recipient list with a multicast or <a shape="rect" href="#ScalaDSL-EIP-pipeline">pipeline
</a>, but this EIP is usually applied when you want to dynamically determine the name(s)
of the next endpoint(s) to route to. Use the <tt>recipients()</tt> method with
a function literal (<tt>Exchange => Any</tt>) that returns the endpoint
name(s). In the example below, the target endpoint name can be found in the String message
starting at position 21.</p>
@@ -307,10 +304,6 @@ div.rbtoc1247582928437 li {margin-left:
<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>
-
-<h3><a shape="rect" name="ScalaDSL-EIP-TODO"></a>TODO</h3>
-<p><b>TODO:</b> Create a Scala alternative and example for every <a
shape="rect" class="external-link" href="http://camel.apache.org/enterprise-integration-patterns.html">EIP
available</a></p>
-<ul><li>Message Channel</li><li>Message</li><li>Message
Router</li><li>Message Translator</li><li>Message Endpoint</li><li>Point
to Point Channel</li><li>Publish Subscribe Channel</li><li>Dead Letter
Channel</li><li>Guaranteed Delivery</li><li>Message Bus</li><li>Correlation
Identifier</li><li>Routing Slip</li><li>Content Filter</li><li>Normalizer</li><li>Messaging
Mapper</li><li>Event Driven Consumer</li><li>Polling Consumer</li><li>Competing
Consumers</li><li>Message Dispatcher</li><li>Selective Consumer</li><li>Durable
Subscriber</li><li>Idempotent Consumer</li><li>Transactional Client</li><li>Messaging
Gateway</li><li>Service Activator</li><li>Wire Tap</li></ul>
</div>
</td>
<td valign="top">
Modified: websites/production/camel/content/scala-dsl-supported-languages.html
==============================================================================
--- websites/production/camel/content/scala-dsl-supported-languages.html (original)
+++ websites/production/camel/content/scala-dsl-supported-languages.html Sat Apr 14 07:21:04
2012
@@ -75,8 +75,9 @@
<tbody>
<tr>
<td valign="top" width="100%">
-<div class="wiki-content maincontent"><p>Support for other languages inside Scala
DSL routes is delivered through traits. The <tt>org.apache.camel.scala.dsl.languages</tt>
package currently offers traits to support XPath. To use any given language, you can mix-in
the trait when creating your <tt>RouteBuilder</tt> like this:</p>
-<div class="error"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException:
Index: 20, Size: 20</span> </div>
+<div class="wiki-content maincontent"><p>Support for <a shape="rect" href="languages.html"
title="Languages">other languages</a> inside Scala DSL routes is delivered through
traits. The <tt>org.apache.camel.scala.dsl.languages</tt> package currently offers
traits to support XPath. To use any given language, you can mix-in the trait when creating
your <tt>RouteBuilder</tt>.</p>
+
+<p>You can use any of the support Camel <a shape="rect" href="languages.html" title="Languages">Languages</a>
in the <a shape="rect" href="scala-dsl.html" title="Scala DSL">Scala DSL</a>,
below is a couple of examples:</p>
<h4><a shape="rect" name="ScalaDSL-Supportedlanguages-UsingXPath"></a>Using
<a shape="rect" href="xpath.html" title="XPath">XPath</a></h4>
<p>With the XPath trait, you have an additional method available on an <tt>Exchange</tt>
to do XPath queries against the message. Just look at this Splitter example, where the <tt>xpath</tt>
method is used in a <tt>Exchange ⇒ Any*</tt> function literal</p>
|