Quantcast

svn commit: r815364 [2/3] - in /websites/production/camel/content/manual: camel-manual-2.8.5.html camel-manual-2.8.5.pdf

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

svn commit: r815364 [2/3] - in /websites/production/camel/content/manual: camel-manual-2.8.5.html camel-manual-2.8.5.pdf

hadrian-3

Added: websites/production/camel/content/manual/camel-manual-2.8.5.html
==============================================================================
--- websites/production/camel/content/manual/camel-manual-2.8.5.html (added)
+++ websites/production/camel/content/manual/camel-manual-2.8.5.html Wed May  2 00:41:56 2012
@@ -0,0 +1,36994 @@
+<html>
+<head>
+   <base href="http://camel.apache.org/book-in-one-page.html"/>
+<link href="file:/x1/apache/release/camel-2.8.5/target/checkout/tooling/camel-manual/src/styles/print.css" rel="stylesheet" type="text/css" />
+                  <style type="text/css">
+                    @page :left {
+                      @top-left {
+                        content: "Apache Camel 2.8.5 Developer's Manual";
+                      }
+                    }
+                  </style>
+</head>
+<body><div class="wiki-content maincontent"><div class="frontcover" id="frontcover"><h1><a name="BookInOnePage-ApacheCamel" shape="rect"/>Apache Camel</h1>
+<h2><a name="BookInOnePage-UserGuide" shape="rect"/>User Guide</h2>
+
+<h3>Version 2.8.5</h3>
+
+<p>Copyright 2007-2011, Apache Software Foundation</p></div>
+<div class="toc" id="toc"><h1><a name="BookInOnePage-TableofContents" shape="rect"/>Table of Contents</h1>
+
+
+<ul class="toc"><li class="frontmatter"><a href="#toc" shape="rect">Table of Contents</a></li><li class="chapter"><a href="#chapter-introduction" shape="rect">Introduction</a></li><li class="chapter"><a href="#chapter-quickstart" shape="rect">Quickstart</a></li><li class="chapter"><a href="#chapter-getting-started" shape="rect">Getting Started</a></li><li class="chapter"><a href="#chapter-architecture" shape="rect">Architecture</a></li><li class="chapter"><a href="#chapter-enterprise-integration-patterns" shape="rect">Enterprise Integration Patterns</a></li><li class="chapter"><a href="#chapter-cook-book" shape="rect">Cook Book</a></li><li class="chapter"><a href="#chapter-tutorials" shape="rect">Tutorials</a></li><li class="chapter"><a href="#chapter-languages-supported-Appendix" shape="rect">Language Appendix</a></li><li class="chapter"><a href="#chapter-dataformat-Appendix" shape="rect">DataFormat Appendix</a></li><li class="chapter"><a href="#chapter-pattern-appendix" sh
 ape="rect">Pattern Appendix</a></li><li class="chapter"><a href="#chapter-component-appendix" shape="rect">Component Appendix</a></li><li class="endmatter"><a href="#index" shape="rect">Index</a></li></ul>
+</div>
+<div class="chapter page-reset" id="chapter-introduction"><h1><a name="BookInOnePage-Introduction" shape="rect"/>Introduction</h1>
+
+Apache Camel ™ is a versatile open-source integration framework based on known <a href="enterprise-integration-patterns.html" shape="rect" title="Enterprise Integration Patterns">Enterprise Integration Patterns</a>.
+
+<p>Camel empowers you to define routing and mediation rules in a variety of domain-specific languages, including a Java-based <a href="dsl.html" shape="rect" title="DSL">Fluent API</a>, <a href="spring.html" shape="rect" title="Spring">Spring</a> or <a href="using-osgi-blueprint-with-camel.html" shape="rect" title="Using OSGi blueprint with Camel">Blueprint</a> <a href="xml-configuration.html" shape="rect" title="Xml Configuration">XML Configuration</a> files, and a <a href="scala-dsl.html" shape="rect" title="Scala DSL">Scala DSL</a>. This means you get smart completion of routing rules in your IDE, whether in a Java, Scala or XML editor.</p>
+
+<p>Apache Camel uses <a href="uris.html" shape="rect" title="URIs">URIs</a> to work directly with any kind of <a href="transport.html" shape="rect" title="Transport">Transport</a> or messaging model such as <a href="http.html" shape="rect" title="HTTP">HTTP</a>, <a href="activemq.html" shape="rect" title="ActiveMQ">ActiveMQ</a>, <a href="jms.html" shape="rect" title="JMS">JMS</a>, <a href="jbi.html" shape="rect" title="JBI">JBI</a>, SCA, <a href="mina.html" shape="rect" title="MINA">MINA</a> or <a href="cxf.html" shape="rect" title="CXF">CXF</a>, as well as pluggable <a href="components.html" shape="rect" title="Components">Components</a> and <a href="data-format.html" shape="rect" title="Data Format">Data Format</a> options. Apache Camel is a small library with minimal <a href="what-are-the-dependencies.html" shape="rect" title="What are the dependencies">dependencies</a> for easy embedding in any Java application. Apache Camel lets you work with the same <a href="exchange.
 html" shape="rect" title="Exchange">API</a> regardless which kind of <a href="transport.html" shape="rect" title="Transport">Transport</a> is used - so learn the API once and you can interact with all the <a href="components.html" shape="rect" title="Components">Components</a> provided out-of-box.</p>
+
+<p>Apache Camel provides support for <a href="bean-binding.html" shape="rect" title="Bean Binding">Bean Binding</a> and seamless integration with popular frameworks such as <a href="spring.html" shape="rect" title="Spring">Spring</a>, <a href="using-osgi-blueprint-with-camel.html" shape="rect" title="Using OSGi blueprint with Camel">Blueprint</a> and <a href="guice.html" shape="rect" title="Guice">Guice</a>.  Camel also has extensive support for <a href="testing.html" shape="rect" title="Testing">unit testing</a> your routes. </p>
+
+<p>The following projects can leverage Apache Camel as a routing and mediation engine:</p>
+
+<ul><li><a class="external-link" href="http://servicemix.apache.org/" shape="rect">Apache ServiceMix</a> - a popular distributed open source ESB and JBI container</li><li><a class="external-link" href="http://activemq.apache.org/" shape="rect">Apache ActiveMQ</a> - a mature, widely used open source message broker</li><li><a href="http://cxf.apache.org/" shape="rect">Apache CXF</a> - a smart web services suite (JAX-WS and JAX-RS)</li><li><a class="external-link" href="http://karaf.apache.org/" shape="rect">Apache Karaf</a> - a small OSGi based runtime in which applications can be deployed</li><li><a class="external-link" href="http://mina.apache.org/" shape="rect">Apache MINA</a> - a high-performance <a class="external-link" href="http://en.wikipedia.org/wiki/New_I/O" rel="nofollow" shape="rect">NIO</a>-driven networking framework</li></ul>
+
+
+<p>So don't get the hump - try Camel today! <img align="middle" alt="" border="0" class="emoticon" height="20" src="https://cwiki.apache.org/confluence/images/icons/emoticons/smile.gif" width="20"/></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" alt="" border="0" height="16" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" width="16"/></td><td colspan="1" rowspan="1"><b>Too many buzzwords - what exactly is Camel?</b><br clear="none"/>Okay, so the description above is technology focused.  <br clear="none"/>
+There's a great discussion about Camel at <a class="external-link" href="http://stackoverflow.com/questions/8845186/what-exactly-is-apache-camel" rel="nofollow" shape="rect">Stack Overflow</a>. We suggest you view the post, read the comments, and browse the suggested links for more details.</td></tr></table></div></div>
+<div class="chapter page-reset" id="chapter-quickstart"><h1><a name="BookInOnePage-Quickstart" shape="rect"/>Quickstart</h1>
+
+<p>To start using Apache Camel quickly, you can read through some simple examples in this chapter. For readers who would like a more thorough introduction, please skip ahead to Chapter 3.</p>
+
+<h2><a name="BookInOnePage-WalkthroughanExampleCode" shape="rect"/>Walk through an Example Code</h2>
+
+<p>This mini-guide takes you through the source code of a <a class="external-link" href="https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmstofile/CamelJmsToFileExample.java" shape="rect">simple example</a>.</p>
+
+<p>Camel can be configured either by using <a href="spring.html" shape="rect" title="Spring">Spring</a> or directly in Java - which <a class="external-link" href="https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmstofile/CamelJmsToFileExample.java" shape="rect">this example does</a>.</p>
+
+<p>This example is available in the <tt>examples\camel-example-jms-file</tt> directory of the <a href="download.html" shape="rect" title="Download">Camel distribution</a>.</p>
+
+<p>We start with creating a <a href="camelcontext.html" shape="rect" title="CamelContext">CamelContext</a> - which is a container for <a href="components.html" shape="rect" title="Components">Components</a>, <a href="routes.html" shape="rect" title="Routes">Routes</a> etc:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">CamelContext context = <span class="code-keyword">new</span> DefaultCamelContext();
+</pre>
+</div></div>
+
+<p>There is more than one way of adding a Component to the CamelContext. You can add components implicitly - when we set up the routing - as we do here for the <a href="file2.html" shape="rect" title="File2">FileComponent</a>:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">context.addRoutes(<span class="code-keyword">new</span> RouteBuilder() {
+    <span class="code-keyword">public</span> void configure() {
+        from(<span class="code-quote">"test-jms:queue:test.queue"</span>).to(<span class="code-quote">"file:<span class="code-comment">//test"</span>);
+</span>    }
+});
+</pre>
+</div></div>
+
+
+<p>or explicitly - as we do here when we add the JMS Component:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">ConnectionFactory connectionFactory = <span class="code-keyword">new</span> ActiveMQConnectionFactory(<span class="code-quote">"vm:<span class="code-comment">//localhost?broker.persistent=<span class="code-keyword">false</span>"</span>);
+</span><span class="code-comment">// Note we can explicit name the component
+</span>context.addComponent(<span class="code-quote">"test-jms"</span>, JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
+</pre>
+</div></div>
+
+<p>The above works with any JMS provider. If we know we are using <a href="activemq.html" shape="rect" title="ActiveMQ">ActiveMQ</a> we can use an even simpler form using the <a class="external-link" href="http://camel.apache.org/maven/current/camel-activemq/apidocs/org/apache/camel/component/activemq/ActiveMQComponent.html#activeMQComponent(java.lang.String)" shape="rect">activeMQComponent() method</a> while specifying the <a class="external-link" href="http://activemq.apache.org/configuring-transports.html" shape="rect">brokerURL</a> used to connect to ActiveMQ </p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">camelContext.addComponent(<span class="code-quote">"activemq"</span>, activeMQComponent(<span class="code-quote">"vm:<span class="code-comment">//localhost?broker.persistent=<span class="code-keyword">false</span>"</span>));</span>
+</pre>
+</div></div>
+
+<p>In normal use, an external system would be firing messages or events directly into Camel through one if its <a href="components.html" shape="rect" title="Components">Components</a>  but we are going to use the <a class="external-link" href="http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/ProducerTemplate.html" shape="rect">ProducerTemplate</a> which is a really easy way for testing your configuration:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">ProducerTemplate template = context.createProducerTemplate();
+</pre>
+</div></div>
+
+<p>Next you <b>must</b> start the camel context. If you are using <a href="spring.html" shape="rect" title="Spring">Spring</a> to configure the camel context this is automatically done for you; though if you are using a pure Java approach then you just need to call the start() method</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+camelContext.start();
+</pre>
+</div></div>
+
+<p>This will start all of the configured routing rules.</p>
+
+<p>So after starting the <a href="camelcontext.html" shape="rect" title="CamelContext">CamelContext</a>, we can fire some objects into camel:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java"><span class="code-keyword">for</span> (<span class="code-object">int</span> i = 0; i &lt; 10; i++) {
+    template.sendBody(<span class="code-quote">"test-jms:queue:test.queue"</span>, <span class="code-quote">"Test Message: "</span> + i);
+}
+</pre>
+</div></div>
+
+
+<h2><a name="BookInOnePage-Whathappens%3F" shape="rect"/>What happens?</h2>
+
+<p>From the <a class="external-link" href="http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/ProducerTemplate.html" shape="rect">ProducerTemplate</a> - we send objects (in this case text) into the <a href="camelcontext.html" shape="rect" title="CamelContext">CamelContext</a> to the Component <em>test-jms:queue:test.queue</em>. These text objects will be <a href="type-converter.html" shape="rect" title="Type Converter">converted automatically</a> into JMS Messages and posted to a JMS Queue named <em>test.queue</em>. When we set up the <a href="routes.html" shape="rect" title="Routes">Route</a>, we configured the <a href="file2.html" shape="rect" title="File2">FileComponent</a> to listen of the <em>test.queue</em>. </p>
+
+<p>The File <a href="file2.html" shape="rect" title="File2">FileComponent</a> will take messages off the Queue, and save them to a directory named <em>test</em>. Every message will be saved in a file that corresponds to its destination and message id.</p>
+
+<p>Finally, we configured our own listener in the <a href="routes.html" shape="rect" title="Routes">Route</a> - to take notifications from the <a href="file2.html" shape="rect" title="File2">FileComponent</a> and print them out as text.</p>
+
+<p><b>That's it!</b></p>
+
+<p>If you have the time then use 5 more minutes to <a href="walk-through-another-example.html" shape="rect" title="Walk through another example">Walk through another example</a> that demonstrates the Spring DSL (XML based) routing.</p>
+
+<div class="panelMacro"><table class="noteMacro"><colgroup span="1"><col span="1" width="24"/><col span="1"/></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" alt="" border="0" height="16" src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16"/></td><td colspan="1" rowspan="1"><b>Camel 1.4.0 change</b><br clear="none"/>In Camel 1.4.0, CamelTemplate has been marked as @deprecated. ProducerTemplate should be used instead and its created from the CamelContext itself.
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+ProducerTemplate template = context.createProducerTemplate();
+</pre>
+</div></div></td></tr></table></div>
+<h2><a name="BookInOnePage-Walkthroughanotherexample" shape="rect"/>Walk through another example</h2>
+
+<h3><a name="BookInOnePage-Introduction" shape="rect"/>Introduction</h3>
+<p>Continuing the walk from our first <a href="walk-through-an-example.html" shape="rect" title="Walk through an Example">example</a>, we take a closer look at the routing and explain a few pointers - so you won't walk into a bear trap, but can enjoy an after-hours walk to the local pub for a large beer <img align="middle" alt="" border="0" class="emoticon" height="20" src="https://cwiki.apache.org/confluence/images/icons/emoticons/wink.gif" width="20"/></p>
+
+<p>First we take a moment to look at the <a href="enterprise-integration-patterns.html" shape="rect" title="Enterprise Integration Patterns">Enterprise Integration Patterns</a> - the base pattern catalog for integration scenarios. In particular we focus on <a href="pipes-and-filters.html" shape="rect" title="Pipes and Filters">Pipes and Filters</a> - a central pattern. This is used to route messages through a sequence of processing steps, each performing a specific function - much like the Java Servlet Filters. </p>
+
+<h3><a name="BookInOnePage-Pipesandfilters" shape="rect"/>Pipes and filters</h3>
+<p>In this sample we want to process a message in a sequence of steps where each steps can perform their specific function. In our example we have a <a href="jms.html" shape="rect" title="JMS">JMS</a> queue for receiving new orders. When an order is received we need to process it in several steps:</p>
+<ul class="alternate" type="square"><li>validate</li><li>register</li><li>send confirm email</li></ul>
+
+
+<p>This can be created in a route like this:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;route&gt;</span>
+   <span class="code-tag">&lt;from uri=<span class="code-quote">"jms:queue:order"</span>/&gt;</span>
+   <span class="code-tag">&lt;pipeline&gt;</span>
+      <span class="code-tag">&lt;bean ref=<span class="code-quote">"validateOrder"</span>/&gt;</span>
+      <span class="code-tag">&lt;bean ref=<span class="code-quote">"registerOrder"</span>/&gt;</span>
+      <span class="code-tag">&lt;bean ref=<span class="code-quote">"sendConfirmEmail"</span>/&gt;</span>
+   <span class="code-tag">&lt;/pipeline&gt;</span>
+<span class="code-tag">&lt;/route&gt;</span>
+</pre>
+</div></div>
+
+<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" alt="" border="0" height="16" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" width="16"/></td><td colspan="1" rowspan="1"><b>Pipeline is default</b><br clear="none"/>In the route above we specify <tt>pipeline</tt> but it can be omitted as its default, so you can write the route as:
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;route&gt;</span>
+   <span class="code-tag">&lt;from uri=<span class="code-quote">"jms:queue:order"</span>/&gt;</span>
+   <span class="code-tag">&lt;bean ref=<span class="code-quote">"validateOrder"</span>/&gt;</span>
+   <span class="code-tag">&lt;bean ref=<span class="code-quote">"registerOrder"</span>/&gt;</span>
+   <span class="code-tag">&lt;bean ref=<span class="code-quote">"sendConfirmEmail"</span>/&gt;</span>
+<span class="code-tag">&lt;/route&gt;</span>
+</pre>
+</div></div>
+<p>This is commonly used not to state the pipeline. </p>
+
+<p>An example where the pipeline needs to be used, is when using a multicast and "one" of the endpoints to send to (as a logical group) is a pipeline of other endpoints. For example.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;route&gt;</span>
+   <span class="code-tag">&lt;from uri=<span class="code-quote">"jms:queue:order"</span>/&gt;</span>
+   <span class="code-tag">&lt;multicast&gt;</span>
+     <span class="code-tag">&lt;to uri=<span class="code-quote">"log:org.company.log.Category"</span>/&gt;</span>
+     <span class="code-tag">&lt;pipeline&gt;</span>
+       <span class="code-tag">&lt;bean ref=<span class="code-quote">"validateOrder"</span>/&gt;</span>
+       <span class="code-tag">&lt;bean ref=<span class="code-quote">"registerOrder"</span>/&gt;</span>
+       <span class="code-tag">&lt;bean ref=<span class="code-quote">"sendConfirmEmail"</span>/&gt;</span>
+     <span class="code-tag">&lt;/pipeline&gt;</span>
+   <span class="code-tag">&lt;/multicast&gt;</span>
+<span class="code-tag">&lt;/route&gt;</span>
+</pre>
+</div></div>
+
+<p>The above sends the order (from <tt>jms:queue:order</tt>) to two locations at the same time, our log component, and to the "pipeline" of beans which goes one to the other. If you consider the opposite, sans the <tt>&lt;pipeline&gt;</tt></p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;route&gt;</span>
+   <span class="code-tag">&lt;from uri=<span class="code-quote">"jms:queue:order"</span>/&gt;</span>
+   <span class="code-tag">&lt;multicast&gt;</span>
+     <span class="code-tag">&lt;to uri=<span class="code-quote">"log:org.company.log.Category"</span>/&gt;</span>
+     <span class="code-tag">&lt;bean ref=<span class="code-quote">"validateOrder"</span>/&gt;</span>
+     <span class="code-tag">&lt;bean ref=<span class="code-quote">"registerOrder"</span>/&gt;</span>
+     <span class="code-tag">&lt;bean ref=<span class="code-quote">"sendConfirmEmail"</span>/&gt;</span>
+   <span class="code-tag">&lt;/multicast&gt;</span>
+<span class="code-tag">&lt;/route&gt;</span>
+</pre>
+</div></div>
+
+<p>you would see that multicast would not "flow" the message from one bean to the next, but rather send the order to all 4 endpoints (1x log, 3x bean) in parallel, which is not (for this example) what we want. We need the message to flow to the validateOrder, then to the registerOrder, then the sendConfirmEmail so adding the pipeline, provides this facility.</p></td></tr></table></div>
+
+<p>Where as the <tt>bean ref</tt> is a reference for a spring bean id, so we define our beans using regular Spring XML as:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+   <span class="code-tag">&lt;bean id=<span class="code-quote">"validateOrder"</span> class=<span class="code-quote">"com.mycompany.MyOrderValidator"</span>/&gt;</span>
+</pre>
+</div></div>
+
+<p>Our validator bean is a plain POJO that has no dependencies to Camel what so ever. So you can implement this POJO as you like. Camel uses rather intelligent <a href="bean-binding.html" shape="rect" title="Bean Binding">Bean Binding</a> to invoke your POJO with the payload of the received message. In this example we will <b>not</b> dig into this how this happens. You should return to this topic later when you got some hands on experience with Camel how it can easily bind routing using your existing POJO beans.</p>
+
+<p>So what happens in the route above. Well when an order is received from the <a href="jms.html" shape="rect" title="JMS">JMS</a> queue the message is routed like <a href="pipes-and-filters.html" shape="rect" title="Pipes and Filters">Pipes and Filters</a>:<br clear="none"/>
+1. payload from the <a href="jms.html" shape="rect" title="JMS">JMS</a> is sent as input to the validateOrder bean<br clear="none"/>
+2. the output from validateOrder bean is sent as input to the registerOrder bean<br clear="none"/>
+3. the output from registerOrder bean is sent as input to the sendConfirmEmail bean</p>
+
+<h3><a name="BookInOnePage-UsingCamelComponents" shape="rect"/>Using Camel Components</h3>
+<p>In the route lets imagine that the registration of the order has to be done by sending data to a TCP socket that could be a big mainframe. As Camel has many <a href="components.html" shape="rect" title="Components">Components</a> we will use the camel-mina component that supports <a href="mina.html" shape="rect" title="MINA">TCP</a> connectivity. So we change the route to:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;route&gt;</span>
+   <span class="code-tag">&lt;from uri=<span class="code-quote">"jms:queue:order"</span>/&gt;</span>
+   <span class="code-tag">&lt;bean ref=<span class="code-quote">"validateOrder"</span>/&gt;</span>
+   <span class="code-tag">&lt;to uri=<span class="code-quote">"mina:tcp://mainframeip:4444?textline=true"</span>/&gt;</span>
+   <span class="code-tag">&lt;bean ref=<span class="code-quote">"sendConfirmEmail"</span>/&gt;</span>
+<span class="code-tag">&lt;/route&gt;</span>
+</pre>
+</div></div>
+
+<p>What we now have in the route is a <tt>to</tt> type that can be used as a direct replacement for the bean type. The steps is now:<br clear="none"/>
+1. payload from the <a href="jms.html" shape="rect" title="JMS">JMS</a> is sent as input to the validateOrder bean<br clear="none"/>
+2. the output from validateOrder bean is sent as text to the mainframe using TCP<br clear="none"/>
+3. the output from mainframe is sent back as input to the sendConfirmEmai bean</p>
+
+<p>What to notice here is that the <tt>to</tt> is not the end of the route (the world <img align="middle" alt="" border="0" class="emoticon" height="20" src="https://cwiki.apache.org/confluence/images/icons/emoticons/wink.gif" width="20"/>) in this example it's used in the middle of the <a href="pipes-and-filters.html" shape="rect" title="Pipes and Filters">Pipes and Filters</a>. In fact we can change the <tt>bean</tt> types to <tt>to</tt> as well:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;route&gt;</span>
+   <span class="code-tag">&lt;from uri=<span class="code-quote">"jms:queue:order"</span>/&gt;</span>
+   <span class="code-tag">&lt;to uri=<span class="code-quote">"bean:validateOrder"</span>/&gt;</span>
+   <span class="code-tag">&lt;to uri=<span class="code-quote">"mina:tcp://mainframeip:4444?textline=true"</span>/&gt;</span>
+   <span class="code-tag">&lt;to uri=<span class="code-quote">"bean:sendConfirmEmail"</span>/&gt;</span>
+<span class="code-tag">&lt;/route&gt;</span>
+</pre>
+</div></div>
+
+<p>As the <tt>to</tt> is a generic type we must state in the uri scheme which component it is. So we must write <b>bean:</b> for the <a href="bean.html" shape="rect" title="Bean">Bean</a> component that we are using.</p>
+
+<h3><a name="BookInOnePage-Conclusion" shape="rect"/>Conclusion</h3>
+<p>This example was provided to demonstrate the Spring DSL (XML based) as opposed to the pure Java DSL from the <a href="walk-through-an-example.html" shape="rect" title="Walk through an Example">first example</a>. And as well to point about that the <tt>to</tt> doesn't have to be the last node in a route graph.</p>
+
+<p>This example is also based on the <b>in-only</b> message exchange pattern. What you must understand as well is the <b>in-out</b> message exchange pattern, where the caller expects a response. We will look into this in another example.</p>
+
+<h3><a name="BookInOnePage-Seealso" shape="rect"/>See also</h3>
+<ul class="alternate" type="square"><li><a href="examples.html" shape="rect" title="Examples">Examples</a></li><li><a href="tutorials.html" shape="rect" title="Tutorials">Tutorials</a></li><li><a href="user-guide.html" shape="rect" title="User Guide">User Guide</a></li></ul>
+</div>
+<div class="chapter" id="chapter-getting-started"><h1><a name="BookInOnePage-GettingStartedwithApacheCamel" shape="rect"/>Getting Started with Apache Camel</h1></div>
+
+<p><a name="BookInOnePage-eipbook" shape="rect"/></p>
+<h2><a name="BookInOnePage-TheEnterpriseIntegrationPatterns%28EIP%29book" shape="rect"/>The <em>Enterprise Integration Patterns</em> (EIP) book</h2>
+<p>The purpose of a "patterns" book is not to advocate new techniques that the authors have invented, but rather to document existing best practices within a particular field. By doing this, the authors of a patterns book hope to spread knowledge of best practices and promote a vocabulary for discussing architectural designs.<br clear="none"/>
+One of the most famous patterns books is <a class="external-link" href="http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612" rel="nofollow" shape="rect"><em>Design Patterns: Elements of Reusable Object-oriented Software</em></a> by Erich Gamma, Richard Helm, Ralph Johnson and John Vlissides, commonly known as the <a class="external-link" href="http://en.wikipedia.org/wiki/Design_Patterns" rel="nofollow" shape="rect">"Gang of Four" (GoF)</a> book.  Since the publication of <em>Design Patterns</em>, many other pattern books, of varying quality, have been written. One famous patterns book is called <a class="external-link" href="http://www.amazon.com/Enterprise-Integration-Patterns-Designing-Deploying/dp/0321200683" rel="nofollow" shape="rect"><em>Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions</em></a> by Gregor Hohpe and Bobby Woolf. It is common for people to refer to this book by its initials <em>EIP<
 /em>. As the subtitle of EIP suggests, the book focuses on design patterns for asynchronous messaging systems. The book discusses 65 patterns. Each pattern is given a textual name and most are also given a graphical symbol, intended to be used in architectural diagrams.</p>
+
+<h2><a name="BookInOnePage-TheCamelproject" shape="rect"/>The Camel project</h2>
+<p>Camel (<a class="external-link" href="http://camel.apache.org" shape="rect">http://camel.apache.org</a>) is an open-source, Java-based project that helps the user implement many of the design patterns in the EIP book. Because Camel implements many of the design patterns in the EIP book, it would be a good idea for people who work with Camel to have the EIP book as a reference.</p>
+
+<h2><a name="BookInOnePage-OnlinedocumentationforCamel" shape="rect"/>Online documentation for Camel</h2>
+<p>The documentation is all under the Documentation category on the right-side menu of the Camel website (also available in <a class="external-link" href="http://camel.apache.org/manual.html" shape="rect">PDF form</a>.  <a href="books.html" shape="rect" title="Books">Camel-related books</a> are also available, in particular the <a class="external-link" href="http://manning.com/ibsen" rel="nofollow" shape="rect">Camel in Action</a> book, presently serving as the Camel bible--it has a <a class="external-link" href="http://www.manning.com/ibsen/chapter1sample.pdf" rel="nofollow" shape="rect">free Chapter One (pdf)</a>, which is highly recommended to read to get more familiar with Camel.</p>
+
+<h3><a name="BookInOnePage-Ausefultipfornavigatingtheonlinedocumentation" shape="rect"/>A useful tip for navigating the online documentation</h3>
+<p>The breadcrumbs at the top of the online Camel documentation can help you navigate between parent and child subsections.  <br clear="none"/>
+For example, If you are on the "Languages" documentation page then the left-hand side of the reddish bar contains the following links.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+Apache Camel &gt; Documentation &gt; Architecture &gt; Languages
+</pre>
+</div></div>
+<p>As you might expect, clicking on "Apache Camel" takes you back to the home page of the Apache Camel project, and clicking on "Documentation" takes you to the main documentation page. You can interpret the "Architecture" and "Languages" buttons as indicating you are in the "Languages" section of the "Architecture" chapter. Adding browser bookmarks to pages that you frequently reference can also save time.  </p>
+
+<p><a name="BookInOnePage-onlinejavadocdocs" shape="rect"/></p>
+<h2><a name="BookInOnePage-OnlineJavadocdocumentation" shape="rect"/>Online Javadoc documentation</h2>
+<p>The Apache Camel website provides <a class="external-link" href="http://camel.apache.org/maven/current/camel-core/apidocs/index.html" shape="rect">Javadoc documentation</a>. It is important to note that the Javadoc documentation is spread over several <em>independent</em> Javadoc hierarchies rather than being all contained in a single Javadoc hierarchy. In particular, there is one Javadoc hierarchy for the <em>core</em> APIs of Camel, and a separate Javadoc hierarchy for each component technology supported by Camel. For example, if you will be using Camel with ActiveMQ and FTP then you need to look at the Javadoc hierarchies for the <a class="external-link" href="http://camel.apache.org/maven/current/camel-core/apidocs/index.html" shape="rect">core API</a> and <a class="external-link" href="http://camel.apache.org/maven/current/camel-spring/apidocs/index.html" shape="rect">Spring API</a>.</p>
+
+<h2><a name="BookInOnePage-ConceptsandterminologyfundamentaltoCamel" shape="rect"/>Concepts and terminology fundamental to Camel</h2>
+<p>In this section some of the concepts and terminology that are fundamental to Camel are explained. This section is not meant as a complete Camel tutorial, but as a first step in that direction.</p>
+
+<p><a name="BookInOnePage-endpoint" shape="rect"/></p>
+<h3><a name="BookInOnePage-Endpoint" shape="rect"/>Endpoint</h3>
+<p>The term <em>endpoint</em> is often used when talking about inter-process communication. For example, in client-server communication, the client is one endpoint and the server is the other endpoint. Depending on the context, an endpoint might refer to an <em>address</em>, such as a host:port pair for TCP-based communication, or it might refer to a <em>software entity</em> that is contactable at that address. For example, if somebody uses "www.example.com:80" as an example of an endpoint, they might be referring to the actual port at that host name (that is, an address), or they might be referring to the web server (that is, software contactable at that address). Often, the distinction between the address and software contactable at that address is not an important one.<br clear="none"/>
+Some middleware technologies make it possible for several software entities to be contactable at the same physical address. For example, CORBA is an object-oriented, remote-procedure-call (RPC) middleware standard. If a CORBA server process contains several objects then a client can communicate with any of these objects at the same <em>physical</em> address (host:port), but a client communicates with a particular object via that object's <em>logical</em> address (called an <em>IOR</em> in CORBA terminology), which consists of the physical address (host:port) plus an id that uniquely identifies the object within its server process. (An IOR contains some additional information that is not relevant to this present discussion.) When talking about CORBA, some people may use the term "endpoint" to refer to a CORBA server's <em>physical address</em>, while other people may use the term to refer to the <em>logical address</em> of a single CORBA object, and other people still might u
 se the term to refer to any of the following:</p>
+<ul><li>The physical address (host:port) of the CORBA server process</li><li>The logical address (host:port plus id) of a CORBA object.</li><li>The CORBA server process (a relatively heavyweight software entity)</li><li>A CORBA object (a lightweight software entity)</li></ul>
+
+
+<p>Because of this, you can see that the term <em>endpoint</em> is ambiguous in at least two ways. First, it is ambiguous because it might refer to an address or to a software entity contactable at that address. Second, it is ambiguous in the <em>granularity</em> of what it refers to: a heavyweight versus lightweight software entity, or physical address versus logical address. It is useful to understand that different people use the term <em>endpoint</em> in slightly different (and hence ambiguous) ways because Camel's usage of this term might be different to whatever meaning you had previously associated with the term.<br clear="none"/>
+Camel provides out-of-the-box support for endpoints implemented with many different communication technologies. Here are some examples of the Camel-supported endpoint technologies.</p>
+<ul><li>A JMS queue.</li><li>A web service.</li><li>A file. A file may sound like an unlikely type of endpoint, until you realize that in some systems one application might write information to a file and, later, another application might read that file.</li><li>An FTP server.</li><li>An email address. A client can send a message to an email address, and a server can read an incoming message from a mail server.</li><li>A POJO (plain old Java object).</li></ul>
+
+
+<p>In a Camel-based application, you create (Camel wrappers around) some endpoints and connect these endpoints with <em>routes</em>, which I will discuss later in <a href="#BookInOnePage-routes" shape="rect">Section 4.8 ("Routes, RouteBuilders and Java DSL")</a>. Camel defines a Java interface called <tt>Endpoint</tt>. Each Camel-supported endpoint has a class that implements this <tt>Endpoint</tt> interface. As I discussed in <a href="#BookInOnePage-onlinejavadocdocs" shape="rect">Section 3.3 ("Online Javadoc documentation")</a>, Camel provides a separate Javadoc hierarchy for each communications technology supported by Camel. Because of this, you will find documentation on, say, the <tt>JmsEndpoint</tt> class in the <a class="external-link" href="http://camel.apache.org/maven/current/camel-jms/apidocs/" shape="rect">JMS Javadoc hierarchy</a>, while documentation for, say, the <tt>FtpEndpoint</tt> class is in the <a class="external-link" href="http://camel.apache.org/maven/
 current/camel-ftp/apidocs/" shape="rect">FTP Javadoc hierarchy</a>.</p>
+
+<h3><a name="BookInOnePage-CamelContext" shape="rect"/>CamelContext</h3>
+<p>A <tt>CamelContext</tt> object represents the Camel runtime system. You typically have one <tt>CamelContext</tt> object in an application. A typical application executes the following steps.</p>
+<ol><li>Create a <tt>CamelContext</tt> object.</li><li>Add endpoints – and possibly Components, which are discussed in <a href="#BookInOnePage-componentsanduris" shape="rect">Section 4.5 ("Components")</a> – to the <tt>CamelContext</tt> object.</li><li>Add routes to the <tt>CamelContext</tt> object to connect the endpoints.</li><li>Invoke the <tt>start()</tt> operation on the <tt>CamelContext</tt> object. This starts Camel-internal threads that are used to process the sending, receiving and processing of messages in the endpoints.</li><li>Eventually invoke the <tt>stop()</tt> operation on the <tt>CamelContext</tt> object. Doing this gracefully stops all the endpoints and Camel-internal threads.</li></ol>
+
+
+<p>Note that the <tt>CamelContext.start()</tt> operation does not block indefinitely. Rather, it starts threads internal to each <tt>Component</tt> and <tt>Endpoint</tt> and then <tt>start()</tt> returns. Conversely, <tt>CamelContext.stop()</tt> waits for all the threads internal to each <tt>Endpoint</tt> and <tt>Component</tt> to terminate and then <tt>stop()</tt> returns.<br clear="none"/>
+If you neglect to call <tt>CamelContext.start()</tt> in your application then messages will not be processed because internal threads will not have been created.<br clear="none"/>
+If you neglect to call <tt>CamelContext.stop()</tt> before terminating your application then the application may terminate in an inconsistent state. If you neglect to call <tt>CamelContext.stop()</tt> in a JUnit test then the test may fail due to messages not having had a chance to be fully processed.</p>
+
+<h3><a name="BookInOnePage-CamelTemplate" shape="rect"/>CamelTemplate</h3>
+<p>Camel used to have a class called <tt>CamelClient</tt>, but this was renamed to be <tt>CamelTemplate</tt> to be similar to a naming convention used in some other open-source projects, such as the <tt>TransactionTemplate</tt> and <tt>JmsTemplate</tt> classes in <a class="external-link" href="http://www.springframework.org/" rel="nofollow" shape="rect">Spring</a>.<br clear="none"/>
+The <tt>CamelTemplate</tt> class is a thin wrapper around the <tt>CamelContext</tt> class. It has methods that send a <tt>Message</tt> or <tt>Exchange</tt> – both discussed in <a href="#BookInOnePage-messageandexchange" shape="rect">Section 4.6 ("Message and Exchange")</a>) – to an <tt>Endpoint</tt> – discussed in <a href="#BookInOnePage-endpoint" shape="rect">Section 4.1 ("Endpoint")</a>. This provides a way to enter messages into source endpoints, so that the messages will move along routes – discussed in <a href="#BookInOnePage-routes" shape="rect">Section 4.8 ("Routes, RouteBuilders and Java DSL")</a> – to destination endpoints.</p>
+
+<p><a name="BookInOnePage-urluriurniri" shape="rect"/></p>
+<h3><a name="BookInOnePage-TheMeaningofURL%2CURI%2CURNandIRI" shape="rect"/>The Meaning of URL, URI, URN and IRI </h3>
+<p>Some Camel methods take a parameter that is a <em>URI</em> string. Many people know that a URI is "something like a URL" but do not properly understand the relationship between URI and URL, or indeed its relationship with other acronyms such as IRI and URN.<br clear="none"/>
+Most people are familiar with <em>URLs</em> (uniform resource locators), such as "http://...", "ftp://...", "mailto:...". Put simply, a URL specifies the <em>location</em> of a resource.<br clear="none"/>
+A <em>URI</em> (uniform resource identifier) is a URL <em>or</em> a URN. So, to fully understand what URI means, you need to first understand what is a URN.<br clear="none"/>
+<em>URN</em> is an acronym for <em>uniform resource name</em>. There are may "unique identifier" schemes in the world, for example, ISBNs (globally unique for books), social security numbers (unique within a country), customer numbers (unique within a company's customers database) and telephone numbers. Each "unique identifier" scheme has its own notation. A URN is a wrapper for different "unique identifier" schemes. The syntax of a URN is "urn:&lt;scheme-name&gt;:&lt;unique-identifier&gt;". A URN uniquely identifies a <em>resource</em>, such as a book, person or piece of equipment. By itself, a URN does not specify the <em>location</em> of the resource. Instead, it is assumed that a <em>registry</em> provides a mapping from a resource's URN to its location. The URN specification does not state what form a registry takes, but it might be a database, a server application, a wall chart or anything else that is convenient. Some hypothetical examples of URNs are "urn:employee:08
 765245", "urn:customer:uk:3458:hul8" and "urn:foo:0000-0000-9E59-0000-5E-2". The &lt;scheme-name&gt; ("employee", "customer" and "foo" in these examples) part of a URN implicitly defines how to parse and interpret the &lt;unique-identifier&gt; that follows it. An arbitrary URN is meaningless unless: (1) you know the semantics implied by the &lt;scheme-name&gt;, and (2) you have access to the registry appropriate for the &lt;scheme-name&gt;. A registry does not have to be public or globally accessible. For example, "urn:employee:08765245" might be meaningful only within a specific company.<br clear="none"/>
+To date, URNs are not (yet) as popular as URLs. For this reason, URI is widely misused as a synonym for URL.<br clear="none"/>
+<em>IRI</em> is an acronym for <em>internationalized resource identifier</em>. An IRI is simply an internationalized version of a URI. In particular, a URI can contain letters and digits in the US-ASCII character set, while a IRI can contain those same letters and digits, and <em>also</em> European accented characters, Greek letters, Chinese ideograms and so on.</p>
+
+<h3><a name="BookInOnePage-Components" shape="rect"/>Components</h3>
+<p><em>Component</em> is confusing terminology; <em>EndpointFactory</em> would have been more appropriate because a <tt>Component</tt> is a factory for creating <tt>Endpoint</tt> instances. For example, if a Camel-based application uses several JMS queues then the application will create one instance of the <tt>JmsComponent</tt> class (which implements the <tt>Component</tt> interface), and then the application invokes the <tt>createEndpoint()</tt> operation on this <tt>JmsComponent</tt> object several times. Each invocation of <tt>JmsComponent.createEndpoint()</tt> creates an instance of the <tt>JmsEndpoint</tt> class (which implements the <tt>Endpoint</tt> interface). Actually, application-level code does not invoke <tt>Component.createEndpoint()</tt> directly. Instead, application-level code normally invokes <tt>CamelContext.getEndpoint()</tt>; internally, the <tt>CamelContext</tt> object finds the desired <tt>Component</tt> object (as I will discuss shortly) and then inv
 okes <tt>createEndpoint()</tt> on it.<br clear="none"/>
+Consider the following code.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+myCamelContext.getEndpoint(<span class="code-quote">"pop3:<span class="code-comment">//[hidden email]?password=myPassword"</span>);</span>
+</pre>
+</div></div>
+<p>The parameter to <tt>getEndpoint()</tt> is a URI. The URI <em>prefix</em> (that is, the part before ":") specifies the name of a component. Internally, the <tt>CamelContext</tt> object maintains a mapping from names of components to <tt>Component</tt> objects. For the URI given in the above example, the <tt>CamelContext</tt> object would probably map the <tt>pop3</tt> prefix to an instance of the <tt>MailComponent</tt> class. Then the <tt>CamelContext</tt> object invokes <tt>createEndpoint("pop3://[hidden email]?password=myPassword")</tt> on that <tt>MailComponent</tt> object. The <tt>createEndpoint()</tt> operation splits the URI into its component parts and uses these parts to create and configure an <tt>Endpoint</tt> object.<br clear="none"/>
+In the previous paragraph, I mentioned that a <tt>CamelContext</tt> object maintains a mapping from component names to <tt>Component</tt> objects. This raises the question of how this map is populated with named <tt>Component</tt> objects. There are two ways of populating the map. The first way is for application-level code to invoke <tt>CamelContext.addComponent(String componentName, Component component)</tt>. The example below shows a single <tt>MailComponent</tt> object being registered in the map under 3 different names.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+Component mailComponent = <span class="code-keyword">new</span> org.apache.camel.component.mail.MailComponent();
+myCamelContext.addComponent(<span class="code-quote">"pop3"</span>, mailComponent);
+myCamelContext.addComponent(<span class="code-quote">"imap"</span>, mailComponent);
+myCamelContext.addComponent(<span class="code-quote">"smtp"</span>, mailComponent);
+</pre>
+</div></div>
+<p>The second (and preferred) way to populate the map of named <tt>Component</tt> objects in the <tt>CamelContext</tt> object is to let the <tt>CamelContext</tt> object perform lazy initialization. This approach relies on developers following a convention when they write a class that implements the <tt>Component</tt> interface. I illustrate the convention by an example. Let's assume you write a class called <tt>com.example.myproject.FooComponent</tt> and you want Camel to automatically recognize this by the name "foo". To do this, you have to write a properties file called "META-INF/services/org/apache/camel/component/foo" (without a ".properties" file extension) that has a single entry in it called <tt>class</tt>, the value of which is the fully-scoped name of your class. This is shown below.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>META-INF/services/org/apache/camel/component/foo</b></div><div class="codeContent panelContent">
+<pre class="code-java">
+class=com.example.myproject.FooComponent
+</pre>
+</div></div>
+<p>If you want Camel to also recognize the class by the name "bar" then you write another properties file in the same directory called "bar" that has the same contents. Once you have written the properties file(s), you create a jar file that contains the <tt>com.example.myproject.FooComponent</tt> class and the properties file(s), and you add this jar file to your CLASSPATH. Then, when application-level code invokes <tt>createEndpoint("foo:...")</tt> on a <tt>CamelContext</tt> object, Camel will find the "foo"" properties file on the CLASSPATH, get the value of the <tt>class</tt> property from that properties file, and use reflection APIs to create an instance of the specified class.<br clear="none"/>
+As I said in <a href="#BookInOnePage-endpoint" shape="rect">Section 4.1 ("Endpoint")</a>, Camel provides out-of-the-box support for numerous communication technologies. The out-of-the-box support consists of classes that implement the <tt>Component</tt> interface plus properties files that enable a <tt>CamelContext</tt> object to populate its map of named <tt>Component</tt> objects.<br clear="none"/>
+Earlier in this section I gave the following example of calling <tt>CamelContext.getEndpoint()</tt>.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+myCamelContext.getEndpoint(<span class="code-quote">"pop3:<span class="code-comment">//[hidden email]?password=myPassword"</span>);</span>
+</pre>
+</div></div>
+<p>When I originally gave that example, I said that the parameter to <tt>getEndpoint()</tt> was a URI. I said that because the online Camel documentation and the Camel source code both claim the parameter is a URI. In reality, the parameter is restricted to being a URL. This is because when Camel extracts the component name from the parameter, it looks for the first ":", which is a simplistic algorithm. To understand why, recall from <a href="#BookInOnePage-urluriurniri" shape="rect">Section 4.4 ("The Meaning of URL, URI, URN and IRI")</a> that a URI can be a URL <em>or</em> a URN. Now consider the following calls to <tt>getEndpoint</tt>.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+myCamelContext.getEndpoint(<span class="code-quote">"pop3:..."</span>);
+myCamelContext.getEndpoint(<span class="code-quote">"jms:..."</span>);
+myCamelContext.getEndpoint(<span class="code-quote">"urn:foo:..."</span>);
+myCamelContext.getEndpoint(<span class="code-quote">"urn:bar:..."</span>);
+</pre>
+</div></div>
+<p>Camel identifies the components in the above example as "pop3", "jms", "urn" and "urn". It would be more useful if the latter components were identified as "urn:foo" and "urn:bar" or, alternatively, as "foo" and "bar" (that is, by skipping over the "urn:" prefix). So, in practice you must identify an endpoint with a URL (a string of the form "&lt;scheme&gt;:...") rather than with a URN (a string of the form "urn:&lt;scheme&gt;:..."). This lack of proper support for URNs means the you should consider the parameter to <tt>getEndpoint()</tt> as being a URL rather than (as claimed) a URI.</p>
+
+<p><a name="BookInOnePage-messageandexchange" shape="rect"/></p>
+<h3><a name="BookInOnePage-MessageandExchange" shape="rect"/>Message and Exchange</h3>
+<p>The <tt>Message</tt> interface provides an abstraction for a single message, such as a request, reply or exception message.<br clear="none"/>
+There are concrete classes that implement the <tt>Message</tt> interface for each Camel-supported communications technology. For example, the <tt>JmsMessage</tt> class provides a JMS-specific implementation of the <tt>Message</tt> interface. The public API of the <tt>Message</tt> interface provides get- and set-style methods to access the <em>message id</em>, <em>body</em> and individual <em>header</em> fields of a messge.<br clear="none"/>
+The <tt>Exchange</tt> interface provides an abstraction for an exchange of messages, that is, a request message and its corresponding reply or exception message. In Camel terminology, the request, reply and exception messages are called <em>in</em>, <em>out</em> and <em>fault</em> messages.<br clear="none"/>
+There are concrete classes that implement the <tt>Exchange</tt> interface for each Camel-supported communications technology. For example, the <tt>JmsExchange</tt> class provides a JMS-specific implementation of the <tt>Exchange</tt> interface. The public API of the <tt>Exchange</tt> interface is quite limited. This is intentional, and it is expected that each class that implements this interface will provide its own technology-specific operations.<br clear="none"/>
+Application-level programmers rarely access the <tt>Exchange</tt> interface (or classes that implement it) directly. However, many classes in Camel are generic types that are instantiated on (a class that implements) <tt>Exchange</tt>. Because of this, the <tt>Exchange</tt> interface appears a lot in the generic signatures of classes and methods.</p>
+
+<h3><a name="BookInOnePage-Processor" shape="rect"/>Processor</h3>
+<p>The <tt>Processor</tt> interface represents a class that processes a message. The signature of this interface is shown below.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Processor</b></div><div class="codeContent panelContent">
+<pre class="code-java">
+<span class="code-keyword">package</span> org.apache.camel;
+<span class="code-keyword">public</span> <span class="code-keyword">interface</span> Processor {
+    void process(Exchange exchange) <span class="code-keyword">throws</span> Exception;
+}
+</pre>
+</div></div>
+<p>Notice that the parameter to the <tt>process()</tt> method is an <tt>Exchange</tt> rather than a <tt>Message</tt>. This provides flexibility. For example, an implementation of this method initially might call <tt>exchange.getIn()</tt> to get the input message and process it. If an error occurs during processing then the method can call <tt>exchange.setException()</tt>.<br clear="none"/>
+An application-level developer might implement the <tt>Processor</tt> interface with a class that executes some business logic. However, there are many classes in the Camel library that implement the <tt>Processor</tt> interface in a way that provides support for a design pattern in the <a href="#BookInOnePage-eipbook" shape="rect">EIP book</a>. For example, <tt>ChoiceProcessor</tt> implements the message router pattern, that is, it uses a cascading if-then-else statement to route a message from an input queue to one of several output queues. Another example is the <tt>FilterProcessor</tt> class which discards messages that do not satisfy a stated <em>predicate</em> (that is, condition).</p>
+
+<p><a name="BookInOnePage-routes" shape="rect"/></p>
+<h3><a name="BookInOnePage-Routes%2CRouteBuildersandJavaDSL" shape="rect"/>Routes, RouteBuilders and Java DSL</h3>
+<p>A <em>route</em> is the step-by-step movement of a <tt>Message</tt> from an input queue, through arbitrary types of decision making (such as filters and routers) to a destination queue (if any). Camel provides two ways for an application developer to specify routes. One way is to specify route information in an XML file. A discussion of that approach is outside the scope of this document. The other way is through what Camel calls a Java <em>DSL</em> (domain-specific language).</p>
+
+<h4><a name="BookInOnePage-IntroductiontoJavaDSL" shape="rect"/>Introduction to Java DSL</h4>
+<p>For many people, the term "domain-specific language" implies a compiler or interpreter that can process an input file containing keywords and syntax specific to a particular domain. This is <em>not</em> the approach taken by Camel. Camel documentation consistently uses the term "Java DSL" instead of "DSL", but this does not entirely avoid potential confusion. The Camel "Java DSL" is a class library that can be used in a way that looks almost like a DSL, except that it has a bit of Java syntactic baggage. You can see this in the example below. Comments afterwards explain some of the constructs used in the example.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeHeader panelHeader" style="border-bottom-width: 1px;"><b>Example of Camel's "Java DSL"</b></div><div class="codeContent panelContent">
+<pre class="code-java">
+RouteBuilder builder = <span class="code-keyword">new</span> RouteBuilder() {
+    <span class="code-keyword">public</span> void configure() {
+        from(<span class="code-quote">"queue:a"</span>).filter(header(<span class="code-quote">"foo"</span>).isEqualTo(<span class="code-quote">"bar"</span>)).to(<span class="code-quote">"queue:b"</span>);
+        from(<span class="code-quote">"queue:c"</span>).choice()
+                .when(header(<span class="code-quote">"foo"</span>).isEqualTo(<span class="code-quote">"bar"</span>)).to(<span class="code-quote">"queue:d"</span>)
+                .when(header(<span class="code-quote">"foo"</span>).isEqualTo(<span class="code-quote">"cheese"</span>)).to(<span class="code-quote">"queue:e"</span>)
+                .otherwise().to(<span class="code-quote">"queue:f"</span>);
+    }
+};
+CamelContext myCamelContext = <span class="code-keyword">new</span> DefaultCamelContext();
+myCamelContext.addRoutes(builder);
+</pre>
+</div></div>
+<p>The first line in the above example creates an object which is an instance of an anonymous subclass of <tt>RouteBuilder</tt> with the specified <tt>configure()</tt> method.<br clear="none"/>
+The <tt>CamelContext.addRoutes(RouterBuilder builder)</tt> method invokes <tt>builder.setContext(this)</tt> – so the <tt>RouteBuilder</tt> object knows which <tt>CamelContext</tt> object it is associated with – and then invokes <tt>builder.configure()</tt>. The body of <tt>configure()</tt> invokes methods such as <tt>from()</tt>, <tt>filter()</tt>, <tt>choice()</tt>, <tt>when()</tt>, <tt>isEqualTo()</tt>, <tt>otherwise()</tt> and <tt>to()</tt>.<br clear="none"/>
+The <tt>RouteBuilder.from(String uri)</tt> method invokes <tt>getEndpoint(uri)</tt> on the <tt>CamelContext</tt> associated with the <tt>RouteBuilder</tt> object to get the specified <tt>Endpoint</tt> and then puts a <tt>FromBuilder</tt> "wrapper" around this <tt>Endpoint</tt>. The <tt>FromBuilder.filter(Predicate predicate)</tt> method creates a <tt>FilterProcessor</tt> object for the <tt>Predicate</tt> (that is, condition) object built from the <tt>header("foo").isEqualTo("bar")</tt> expression. In this way, these operations incrementally build up a <tt>Route</tt> object (with a <tt>RouteBuilder</tt> wrapper around it) and add it to the <tt>CamelContext</tt> object associated with the <tt>RouteBuilder</tt>.</p>
+
+<h4><a name="BookInOnePage-CritiqueofJavaDSL" shape="rect"/>Critique of Java DSL</h4>
+<p>The online Camel documentation compares Java DSL favourably against the alternative of configuring routes and endpoints in a XML-based Spring configuration file. In particular, Java DSL is less verbose than its XML counterpart. In addition, many integrated development environments (IDEs) provide an auto-completion feature in their editors. This auto-completion feature works with Java DSL, thereby making it easier for developers to write Java DSL.<br clear="none"/>
+However, there is another option that the Camel documentation neglects to consider: that of writing a parser that can process DSL stored in, say, an external file. Currently, Camel does not provide such a DSL parser, and I do not know if it is on the "to do" list of the Camel maintainers. I think that a DSL parser would offer a significant benefit over the current Java DSL. In particular, the DSL would have a syntactic definition that could be expressed in a relatively short BNF form. The effort required by a Camel user to learn how to use DSL by reading this BNF would almost certainly be significantly less than the effort currently required to study the API of the <tt>RouterBuilder</tt> classes.</p>
+
+
+<h3><a name="BookInOnePage-ContinueLearningaboutCamel" shape="rect"/>Continue Learning about Camel</h3>
+
+<p>Return to the main <a href="getting-started.html" shape="rect" title="Getting Started">Getting Started</a> page for additional introductory reference information.</p>
+<div class="chapter" id="chapter-architecture"><h1><a name="BookInOnePage-Architecture" shape="rect"/>Architecture</h1>
+
+<p>Camel uses a Java based <a href="dsl.html" shape="rect" title="DSL">Routing Domain Specific Language (DSL)</a> or an <a href="xml-configuration.html" shape="rect" title="Xml Configuration">Xml Configuration</a> to configure <a href="routes.html" shape="rect" title="Routes">routing and mediation rules</a> which are added to a <a class="external-link" href="http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/CamelContext.html" shape="rect">CamelContext</a> to implement the various <a href="enterprise-integration-patterns.html" shape="rect" title="Enterprise Integration Patterns">Enterprise Integration Patterns</a>.
+
+</p><p>At a high level Camel consists of a <a class="external-link" href="http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/CamelContext.html" shape="rect">CamelContext</a> which contains a collection of <a href="component.html" shape="rect" title="Component">Component</a> instances. A <a href="component.html" shape="rect" title="Component">Component</a> is essentially a factory of <a href="endpoint.html" shape="rect" title="Endpoint">Endpoint</a> instances. You can explicitly configure <a href="component.html" shape="rect" title="Component">Component</a> instances in Java code or an IoC container like Spring or Guice, or they can be auto-discovered using <a href="uris.html" shape="rect" title="URIs">URIs</a>. </p>
+
+<p>An <a href="endpoint.html" shape="rect" title="Endpoint">Endpoint</a> acts rather like a URI or URL in a web application or a Destination in a JMS system; you can communicate with an endpoint; either sending messages to it or consuming messages from it. You can then create a <a class="external-link" href="http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Producer.html" shape="rect">Producer</a> or <a class="external-link" href="http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Consumer.html" shape="rect">Consumer</a> on an <a href="endpoint.html" shape="rect" title="Endpoint">Endpoint</a> to exchange messages with it.</p>
+
+<p>The <a href="dsl.html" shape="rect" title="DSL">DSL</a> makes heavy use of pluggable <a href="languages.html" shape="rect" title="Languages">Languages</a> to create an <a href="expression.html" shape="rect" title="Expression">Expression</a> or <a href="predicate.html" shape="rect" title="Predicate">Predicate</a> to make a truly powerful DSL which is extensible to the most suitable language depending on your needs. The following languages are supported</p>
+
+<ul><li><a href="bean-language.html" shape="rect" title="Bean Language">Bean Language</a> for using Java for expressions</li><li><a href="constant.html" shape="rect" title="Constant">Constant</a></li><li>the unified <a href="el.html" shape="rect" title="EL">EL</a> from JSP and JSF</li><li><a href="header.html" shape="rect" title="Header">Header</a></li><li><a href="jxpath.html" shape="rect" title="JXPath">JXPath</a></li><li><a href="mvel.html" shape="rect" title="Mvel">Mvel</a></li><li><a href="ognl.html" shape="rect" title="OGNL">OGNL</a></li><li><a href="ref-language.html" shape="rect" title="Ref Language">Ref Language</a></li><li><a href="property.html" shape="rect" title="Property">Property</a></li><li><a href="scala-dsl.html" shape="rect" title="Scala DSL">Scala DSL</a></li><li><a href="scripting-languages.html" shape="rect" title="Scripting Languages">Scripting Languages</a> such as
+ <ul><li><a href="beanshell.html" shape="rect" title="BeanShell">BeanShell</a></li><li><a href="javascript.html" shape="rect" title="JavaScript">JavaScript</a></li><li><a href="groovy.html" shape="rect" title="Groovy">Groovy</a></li><li><a href="python.html" shape="rect" title="Python">Python</a></li><li><a href="php.html" shape="rect" title="PHP">PHP</a></li><li><a href="ruby.html" shape="rect" title="Ruby">Ruby</a></li></ul>
+ </li><li><a href="simple.html" shape="rect" title="Simple">Simple</a>
+ <ul><li><a href="file-language.html" shape="rect" title="File Language">File Language</a></li></ul>
+ </li><li><a href="spel.html" shape="rect" title="SpEL">Spring Expression Language</a></li><li><a href="sql.html" shape="rect" title="SQL">SQL</a></li><li><a href="tokenizer.html" shape="rect" title="Tokenizer">Tokenizer</a></li><li><a href="xpath.html" shape="rect" title="XPath">XPath</a></li><li><a href="xquery.html" shape="rect" title="XQuery">XQuery</a></li></ul>
+
+
+<p>Most of these languages is also supported used as <a href="annotation-based-expression-language.html" shape="rect" title="Annotation Based Expression Language">Annotation Based Expression Language</a>.</p>
+
+<p>For a full details of the individual languages see the <a href="book-languages-appendix.html" shape="rect" title="Book Languages Appendix">Language Appendix</a></p>
+
+<h2><a name="BookInOnePage-URIs" shape="rect"/>URIs</h2>
+
+<p>Camel makes extensive use of URIs to allow you to refer to endpoints which are lazily created by a <a href="component.html" shape="rect" title="Component">Component</a> if you refer to them within <a href="routes.html" shape="rect" title="Routes">Routes</a></p>
+
+<h3><a name="BookInOnePage-CurrentSupportedURIs" shape="rect"/>Current Supported URIs</h3>
+
+<div class="table-wrap">
+<table class="confluenceTable"><tbody><tr><th class="confluenceTh" colspan="1" rowspan="1"> Component / ArtifactId / URI </th><th class="confluenceTh" colspan="1" rowspan="1"> Description </th></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="ahc.html" shape="rect" title="AHC">AHC</a> / camel-ahc
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+ahc:hostname:[port]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> To call external HTTP services using <a class="external-link" href="http://github.com/sonatype/async-http-client" rel="nofollow" shape="rect">Async Http Client</a> </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="amqp.html" shape="rect" title="AMQP">AMQP</a> / camel-amqp
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+amqp:[topic:]destinationName
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> For Messaging with <a class="external-link" href="http://www.amqp.org/" rel="nofollow" shape="rect">AMQP protocol</a> </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="apns.html" shape="rect" title="APNS">APNS</a> / camel-apns
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+apns:notify[?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> For sending notifications to Apple iOS devices </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="atom.html" shape="rect" title="Atom">Atom</a> / camel-atom
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+atom:uri
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Working with <a class="external-link" href="http://incubator.apache.org/abdera/" shape="rect">Apache Abdera</a> for atom integration, such as consuming an atom feed. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="aws-ddb.html" shape="rect" title="AWS-DDB">AWS-DDB</a> / <a href="aws.html" shape="rect" title="AWS">camel-aws</a>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+aws-ddb://tableName[?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> For working with <a class="external-link" href="http://aws.amazon.com/dynamodb/" rel="nofollow" shape="rect">Amazon's DynamoDB (DDB)</a>. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="aws-sdb.html" shape="rect" title="AWS-SDB">AWS-SDB</a> / <a href="aws.html" shape="rect" title="AWS">camel-aws</a>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+aws-sdb://domainName[?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> For working with <a class="external-link" href="http://aws.amazon.com/simpledb/" rel="nofollow" shape="rect">Amazon's SimpleDB (SDB)</a>. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="aws-ses.html" shape="rect" title="AWS-SES">AWS-SES</a> / <a href="aws.html" shape="rect" title="AWS">camel-aws</a>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+aws-ses://from[?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> For working with <a class="external-link" href="http://aws.amazon.com/ses/" rel="nofollow" shape="rect">Amazon's Simple Email Service (SES)</a>. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="aws-sns.html" shape="rect" title="AWS-SNS">AWS-SNS</a> / <a href="aws.html" shape="rect" title="AWS">camel-aws</a>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+aws-sns://topicname[?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> For Messaging with <a class="external-link" href="http://aws.amazon.com/sns/" rel="nofollow" shape="rect">Amazon's Simple Notification Service (SNS)</a>. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="aws-sqs.html" shape="rect" title="AWS-SQS">AWS-SQS</a> / <a href="aws.html" shape="rect" title="AWS">camel-aws</a>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+aws-sqs://queuename[?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> For Messaging with <a class="external-link" href="http://aws.amazon.com/sqs/" rel="nofollow" shape="rect">Amazon's Simple Queue Service (SQS)</a>. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="aws-s3.html" shape="rect" title="AWS-S3">AWS-S3</a> / <a href="aws.html" shape="rect" title="AWS">camel-aws</a>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+aws-s3://bucketname[?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> For working with <a class="external-link" href="http://aws.amazon.com/s3/" rel="nofollow" shape="rect">Amazon's Simple Storage Service (S3)</a>. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="bean.html" shape="rect" title="Bean">Bean</a> / camel-core
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+bean:beanName[?method=someMethod]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Uses the <a href="bean-binding.html" shape="rect" title="Bean Binding">Bean Binding</a> to bind message exchanges to beans in the <a href="registry.html" shape="rect" title="Registry">Registry</a>. Is also used for exposing and invoking POJO (Plain Old Java Objects). </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="bean-validation.html" shape="rect" title="Bean Validation">Bean Validation</a> / camel-bean-validator
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+bean-validator:something
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Validates the payload of a message using the Java Validation API (<a class="external-link" href="http://jcp.org/en/jsr/detail?id=303" rel="nofollow" shape="rect">JSR 303</a> and JAXP Validation) and its reference implementation <a class="external-link" href="http://docs.jboss.org/hibernate/stable/validator/reference/en/html_single/" rel="nofollow" shape="rect">Hibernate Validator</a> </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="browse.html" shape="rect" title="Browse">Browse</a> / camel-core
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+browse:someName
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Provides a simple <a href="browsableendpoint.html" shape="rect" title="BrowsableEndpoint">BrowsableEndpoint</a> which can be useful for testing, visualisation tools or debugging. The exchanges sent to the endpoint are all available to be browsed. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="cache.html" shape="rect" title="Cache">Cache</a> / camel-cache
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+cache://cachename[?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> The cache component facilitates creation of caching endpoints and processors using <a class="external-link" href="http://ehcache.org/" rel="nofollow" shape="rect">EHCache</a> as the cache implementation. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="class.html" shape="rect" title="Class">Class</a> / camel-core
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+class:className[?method=someMethod]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Uses the <a href="bean-binding.html" shape="rect" title="Bean Binding">Bean Binding</a> to bind message exchanges to beans in the <a href="registry.html" shape="rect" title="Registry">Registry</a>. Is also used for exposing and invoking POJO (Plain Old Java Objects). </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="cometd.html" shape="rect" title="Cometd">Cometd</a> / camel-cometd
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+cometd://host:port/channelname
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Used to deliver messages using the <a class="external-link" href="http://docs.codehaus.org/display/JETTY/Cometd+(aka+Bayeux)" rel="nofollow" shape="rect">jetty cometd implementation</a> of the <a class="external-link" href="http://svn.xantus.org/shortbus/trunk/bayeux/bayeux.html" rel="nofollow" shape="rect">bayeux protocol</a> </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="context.html" shape="rect" title="Context">Context</a> / camel-context
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+context:camelContextId:localEndpointName
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Used to refer to endpoints within a separate CamelContext to provide a simple <a href="context.html" shape="rect" title="Context">black box composition</a> approach so that routes can be combined into a CamelContext and then used as a black box component inside other routes in other CamelContexts </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="crypto-digital-signatures.html" shape="rect" title="Crypto (Digital Signatures)">Crypto (Digital Signatures)</a> / camel-crypto
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+crypto:sign:name[?options]
+crypto:verify:name[?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Used to sign and verify exchanges using the Signature Service of the Java Cryptographic Extension. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="cxf.html" shape="rect" title="CXF">CXF</a> / camel-cxf
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+cxf:address[?serviceClass=...]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Working with <a class="external-link" href="http://apache.org/cxf/" shape="rect">Apache CXF</a> for web services integration </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="cxf-bean-component.html" shape="rect" title="CXF Bean Component">CXF Bean </a> / camel-cxf
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+cxf:bean name
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Proceess the exchange using a JAX WS or JAX RS annotated bean from the registry. Requires less configuration than the above CXF Component </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="cxfrs.html" shape="rect" title="CXFRS">CXFRS</a> / camel-cxf
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+cxfrs:address[?resourcesClasses=...]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Working with <a class="external-link" href="http://apache.org/cxf/" shape="rect">Apache CXF</a> for REST services integration </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="dataset.html" shape="rect" title="DataSet">DataSet</a> / camel-core
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+dataset:name
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> For load &amp; soak testing the <a class="external-link" href="http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/component/dataset/DataSet.html" shape="rect">DataSet</a> provides a way to create huge numbers of messages for sending to <a href="components.html" shape="rect" title="Components">Components</a> or asserting that they are consumed correctly </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="direct.html" shape="rect" title="Direct">Direct</a> / camel-core
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+direct:name
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Synchronous call to another endpoint </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="dns.html" shape="rect" title="DNS">DNS</a> / camel-dns
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+dns:operation
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> To lookup domain information and run DNS queries using <a class="external-link" href="http://www.xbill.org/dnsjava/" rel="nofollow" shape="rect">DNSJava</a> </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="ejb.html" shape="rect" title="EJB">EJB</a> / camel-ejb
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+ejb:ejbName[?method=someMethod]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Uses the <a href="bean-binding.html" shape="rect" title="Bean Binding">Bean Binding</a> to bind message exchanges to EJBs. It works like the <a href="bean.html" shape="rect" title="Bean">Bean</a> component but just for accessing EJBs. Supports EJB 3.0 onwards. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="event.html" shape="rect" title="Event">Event</a> / camel-spring
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+event://default
+spring-event://default
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Working with Spring ApplicationEvents </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="eventadmin.html" shape="rect" title="EventAdmin">EventAdmin</a> / camel-eventadmin
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+eventadmin:topic
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Receiving OSGi EventAdmin events </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="exec.html" shape="rect" title="Exec">Exec</a> / camel-exec
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+exec://executable[?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> For executing system commands </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="file2.html" shape="rect" title="File2">File</a> / camel-core
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+file://nameOfFileOrDirectory
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Sending messages to a file or polling a file or directory. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="flatpack.html" shape="rect" title="Flatpack">Flatpack</a> / camel-flatpack
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+flatpack:[fixed|delim]:configFile
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Processing fixed width or delimited files or messages using the <a class="external-link" href="http://flatpack.sourceforge.net" rel="nofollow" shape="rect">FlatPack library</a> </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="fop.html" shape="rect" title="FOP">FOP</a> / camel-fop
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+fop:outputFormat
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Renders the message into different output formats using <a class="external-link" href="http://xmlgraphics.apache.org/fop/index.html" shape="rect">Apache FOP</a> </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="freemarker.html" shape="rect" title="FreeMarker">FreeMarker</a> / camel-freemarker
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+freemarker:someTemplateResource
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Generates a response using a <a class="external-link" href="http://freemarker.org/" rel="nofollow" shape="rect">FreeMarker</a> template </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="ftp2.html" shape="rect" title="FTP2">FTP</a> / camel-ftp
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+ftp://host[:port]/fileName
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Sending and receiving files over FTP. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="ftp2.html" shape="rect" title="FTP2">FTPS</a> / camel-ftp
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+ftps://host[:port]/fileName
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Sending and receiving files over FTP Secure (TLS and SSL). </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="gauth.html" shape="rect" title="gauth">GAuth</a> / <a href="gae.html" shape="rect" title="GAE">camel-gae</a>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+gauth://name[?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Used by web applications to implement an <a class="external-link" href="http://code.google.com/apis/accounts/docs/OAuth.html" rel="nofollow" shape="rect">OAuth</a> consumer. See also <a href="gae.html" shape="rect" title="GAE">Camel Components for Google App Engine</a>. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="ghttp.html" shape="rect" title="ghttp">GHttp</a> / <a href="gae.html" shape="rect" title="GAE">camel-gae</a>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+ghttp://hostname[:port][/path][?options]
+ghttp:///path[?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Provides connectivity to the <a class="external-link" href="http://code.google.com/appengine/docs/java/urlfetch/" rel="nofollow" shape="rect">URL fetch service</a> of Google App Engine but can also be used to receive messages from servlets. See also <a href="gae.html" shape="rect" title="GAE">Camel Components for Google App Engine</a>. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="glogin.html" shape="rect" title="glogin">GLogin</a> / <a href="gae.html" shape="rect" title="GAE">camel-gae</a>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+glogin://hostname[:port][?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Used by Camel applications outside Google App Engine (GAE) for programmatic login to GAE applications. See also <a href="gae.html" shape="rect" title="GAE">Camel Components for Google App Engine</a>. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="gtask.html" shape="rect" title="gtask">GTask</a> / <a href="gae.html" shape="rect" title="GAE">camel-gae</a>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+gtask://queue-name
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Supports asynchronous message processing on Google App Engine by using the <a class="external-link" href="http://code.google.com/appengine/docs/java/taskqueue/" rel="nofollow" shape="rect">task queueing service</a> as message queue. See also <a href="gae.html" shape="rect" title="GAE">Camel Components for Google App Engine</a>. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="gmail.html" shape="rect" title="gmail">GMail</a> / <a href="gae.html" shape="rect" title="GAE">camel-gae</a>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+gmail://[hidden email][?options]
+gmail://[hidden email][?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> Supports sending of emails via the <a class="external-link" href="http://code.google.com/appengine/docs/java/mail/" rel="nofollow" shape="rect">mail service</a> of Google App Engine. See also <a href="gae.html" shape="rect" title="GAE">Camel Components for Google App Engine</a>. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="hazelcast-component.html" shape="rect" title="Hazelcast Component">Hazelcast</a> / <a href="hazelcast-component.html" shape="rect" title="Hazelcast Component">camel-hazelcast</a>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+hazelcast://[type]:cachename[?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> <a class="external-link" href="http://www.hazelcast.com" rel="nofollow" shape="rect">Hazelcast</a> is a data grid entirely implemented in Java (single jar). This component supports map, multimap, seda, queue, set, atomic number and simple cluster support. </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="hdfs.html" shape="rect" title="HDFS">HDFS</a> / camel-hdfs
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+hdfs://path[?options]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> For reading/writing from/to an <a class="external-link" href="http://hadoop.apache.org/hdfs/" shape="rect">HDFS</a> filesystem </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="hl7.html" shape="rect" title="HL7">HL7</a> / camel-hl7
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+mina:tcp://hostname[:port]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> For working with the HL7 MLLP protocol and the HL7 model using the <a class="external-link" href="http://hl7api.sourceforge.net" rel="nofollow" shape="rect">HAPI library</a> </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="http.html" shape="rect" title="HTTP">HTTP</a> / camel-http
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+http://hostname[:port]
+</pre>
+</div></div> </td><td class="confluenceTd" colspan="1" rowspan="1"> For calling out to external HTTP servers using Apache HTTP Client 3.x </td></tr><tr><td class="confluenceTd" colspan="1" rowspan="1"> <a href="http4.html" shape="rect" title="HTTP4">HTTP4</a> / camel-http4
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+http4://hostname[:port]
+</pre>

[... 36317 lines stripped ...]

Loading...