camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Camel > Scala DSL
Date Sat, 14 Apr 2012 07:21:01 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/CAMEL/Scala+DSL">Scala
DSL</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~davsclaus">Claus
Ibsen</a>
    </h4>
        <br/>
                         <h4>Changes (2)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >h3. References <br>* At [ApacheCon
Europe 2008|http://www.eu.apachecon.com] there was a Fast Feather talk that introduced some
of the basic Scala language concepts that are being used for building the Scala DSL.  [Here
are the presentation slides| http://www.anova.be/files/camel-scala.pdf] . <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">*
And here is a little [blog entry|http://davsclaus.blogspot.se/2011/12/apache-camel-little-scala-dsl-example.html]
how showing a [Message Filter] EIP example with the [Scala DSL] and how to use the [Camel
Test] kit to test the example. <br></td></tr>
            <tr><td class="diff-unchanged" > <br>h3. Dependencies <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >  &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
<br>  &lt;artifactId&gt;camel-scala&lt;/artifactId&gt; <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-changed-words">&lt;version&gt;2.<span
class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">8</span><span
class="diff-added-chars"style="background-color: #dfd;">9</span>.0&lt;/version&gt;</span>
<br></td></tr>
            <tr><td class="diff-unchanged" >&lt;/dependency&gt; <br>{code}
<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h3><a name="ScalaDSL-AbouttheScalaDSL"></a>About the Scala DSL</h3>
<p><a href="http://www.scala-lang.org/" class="external-link" 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 href="/confluence/display/CAMEL/DSL"
title="DSL">DSL</a>, but it adds Scala syntax sugar to make building routes even
more convenient.</p>

<h3><a name="ScalaDSL-Documentation"></a>Documentation</h3>
<ul>
	<li><a href="/confluence/display/CAMEL/Scala+DSL+-+Getting+Started" title="Scala
DSL - Getting Started">Scala DSL &#45; Getting Started</a> gives you basic information
on how to use the Scala DSL.</li>
	<li><a href="/confluence/display/CAMEL/Scala+DSL+-+EIP" title="Scala DSL - EIP">Scala
DSL &#45; EIP</a> shows you the Scala DSL syntax for every EIP supported</li>
	<li><a href="/confluence/display/CAMEL/Scala+DSL+-+Supported+languages" title="Scala
DSL - Supported languages">Scala DSL &#45; Supported languages</a> explains the
usage of traits to add support for other languages (e.g. XPath)</li>
</ul>


<h3><a name="ScalaDSL-References"></a>References</h3>
<ul>
	<li>At <a href="http://www.eu.apachecon.com" class="external-link" 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 href="http://www.anova.be/files/camel-scala.pdf"
class="external-link" rel="nofollow">Here are the presentation slides</a> .</li>
	<li>And here is a little <a href="http://davsclaus.blogspot.se/2011/12/apache-camel-little-scala-dsl-example.html"
class="external-link" rel="nofollow">blog entry</a> how showing a <a href="/confluence/display/CAMEL/Message+Filter"
title="Message Filter">Message Filter</a> EIP example with the <a href="/confluence/display/CAMEL/Scala+DSL"
title="Scala DSL">Scala DSL</a> and how to use the <a href="/confluence/display/CAMEL/Camel+Test"
title="Camel Test">Camel Test</a> kit to test the example.</li>
</ul>


<h3><a name="ScalaDSL-Dependencies"></a>Dependencies</h3>

<p>To use the Scala DSL in your camel routes you need to add the a dependency on <b>camel-scala</b>
which implements the Scala DSL.</p>

<p>If you use maven you could just add the following to your pom.xml, substituting the
version number for the latest &amp; greatest release (see the download page for the latest
versions).</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-xml">
<span class="code-tag">&lt;dependency&gt;</span>
  <span class="code-tag">&lt;groupId&gt;</span>org.apache.camel<span
class="code-tag">&lt;/groupId&gt;</span>
  <span class="code-tag">&lt;artifactId&gt;</span>camel-scala<span
class="code-tag">&lt;/artifactId&gt;</span>
  <span class="code-tag">&lt;version&gt;</span>2.9.0<span class="code-tag">&lt;/version&gt;</span>
<span class="code-tag">&lt;/dependency&gt;</span>
</pre>
</div></div>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/Scala+DSL">View Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=82603&revisedVersion=14&originalVersion=13">View
Changes</a>
                |
        <a href="https://cwiki.apache.org/confluence/display/CAMEL/Scala+DSL?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message