camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r927293 - in /websites/production/camel/content: cache/main.pageCache spring-java-config-example.html
Date Wed, 29 Oct 2014 16:18:48 GMT
Author: buildbot
Date: Wed Oct 29 16:18:48 2014
New Revision: 927293

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/spring-java-config-example.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/spring-java-config-example.html
==============================================================================
--- websites/production/camel/content/spring-java-config-example.html (original)
+++ websites/production/camel/content/spring-java-config-example.html Wed Oct 29 16:18:48
2014
@@ -86,24 +86,19 @@
 	<tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 id="SpringJavaConfigExample-SpringJavaConfigExample">Spring
Java Config Example </h2>
-
-<p>The spring java config example is a simple refactor of the <a shape="rect" href="spring-example.html">spring
example</a> since Camel 2.0 to show how to use the <a shape="rect" class="external-link"
href="http://www.springsource.org/javaconfig" rel="nofollow">Spring JavaConfig</a>
approach to working with Camel. In this example we just write RouteBuilder implementations,
then Camel will find it through your configuration.<br clear="none">
-<strong>NOTE</strong> From Camel 2.2.0, camel-example-spring-javaconfig can only
work with Spring 3.x.</p>
-
-<p>To run the example we use the <a shape="rect" href="camel-maven-plugin.html">Camel
Maven Plugin</a>. For example from the source or binary distribution the following should
work</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-cd examples/camel-example-spring-javaconfig
+<div class="wiki-content maincontent"><h2 id="SpringJavaConfigExample-SpringJavaConfigExample">Spring
Java Config Example</h2>    <div class="aui-message hint shadowed information-macro">
+                    <p class="title">Simple Jar runner</p>
+                            <span class="aui-icon icon-hint">Icon</span>
+                <div class="message-content">
+                            <p>Want to run your jar file and supply a list of packages
/ configuration classes and just see it run with Camel? Try <code>Main</code>
from <code>org.apache.camel.spring</code> which even supports command-line flags.</p>
+                    </div>
+    </div>
+<p><span style="line-height: 1.4285715;">The spring java config example is a
simple refactor of the </span><a shape="rect" href="spring-example.html">spring
example</a><span style="line-height: 1.4285715;"> since Camel 2.0 to show how
to use the </span><a shape="rect" class="external-link" href="http://www.springsource.org/javaconfig"
style="line-height: 1.4285715;" rel="nofollow">Spring JavaConfig</a><span style="line-height:
1.4285715;"> approach to working with Camel. In this example we just write RouteBuilder
implementations, then Camel will find it through your configuration.</span></p><p>&#160;</p><p><strong>NOTE</strong>
From Camel 2.2.0, camel-example-spring-javaconfig can only work with Spring 3.x.</p><p>To
run the example we use the <a shape="rect" href="camel-maven-plugin.html">Camel Maven
Plugin</a>. For example from the source or binary distribution the following should
work</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent p
 dl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[cd
examples/camel-example-spring-javaconfig
 mvn camel:run
 ]]></script>
-</div></div>
-
-<p>You need to add camel-spring-javaconfig dependency into pom.xml and also set the
configure class or base package in the camel plugin configuration. </p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
-<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
-    &lt;dependency&gt;
+</div></div><p>You need to add camel-spring-javaconfig dependency into
pom.xml and also set the configure class or base package in the camel plugin configuration.</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
   &lt;dependency&gt;
       &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
       &lt;artifactId&gt;camel-spring&lt;/artifactId&gt;
     &lt;/dependency&gt;
@@ -113,11 +108,7 @@ mvn camel:run
       &lt;artifactId&gt;camel-spring-javaconfig&lt;/artifactId&gt;
     &lt;/dependency&gt;
 ]]></script>
-</div></div>
-
-<p>Here is the configuration for camel plugin.</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
+</div></div><p>Here is the configuration for camel plugin.</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
 
 &lt;!-- Allows the routes to be run via &#39;mvn camel:run&#39; --&gt;
@@ -136,11 +127,7 @@ mvn camel:run
   &lt;/configuration&gt;
 &lt;/plugin&gt;
 ]]></script>
-</div></div>
-
-<p>What this does is boot up the Spring ApplicationContext defined in the file MyRouteConfig
class on the classpath. This is a regular Java file which has the Spring JavaConfig annotation
to configure a <a shape="rect" href="camelcontext.html">CamelContext</a>.</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
+</div></div><p>What this does is boot up the Spring ApplicationContext
defined in the file MyRouteConfig class on the classpath. This is a regular Java file which
has the Spring JavaConfig annotation to configure a <a shape="rect" href="camelcontext.html">CamelContext</a>.</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
 /**
  * A simple example router from a file system to an ActiveMQ queue and then to a file system
@@ -226,13 +213,7 @@ public class MyRouteConfig extends Singl
 
 }
 ]]></script>
-</div></div>
-
-<p>In the method of setupCamelContext(CamelContext camelContext), we setup the JMS
component's connection factory and register the component into the camelcontext. You can override
this method if you want to setup the another connection factory or start up a JMS broker here.</p>
-
-<p>You can write the route rule with Java <a shape="rect" href="dsl.html">DSL</a>
in the route() method.</p>
-
-<p>This approach, of using Java code to write the routes in the <a shape="rect"
href="dsl.html">DSL</a> and Spring will help your configure the Camel context as
the <a shape="rect" href="spring-java-config-example.html">Spring Java Config Example</a>
shows. </p></div>
+</div></div><p>In the method of setupCamelContext(CamelContext camelContext),
we setup the JMS component's connection factory and register the component into the camelcontext.
You can override this method if you want to setup the another connection factory or start
up a JMS broker here.</p><p>You can write the route rule with Java <a shape="rect"
href="dsl.html">DSL</a> in the route() method.</p><p>This approach, of
using Java code to write the routes in the <a shape="rect" href="dsl.html">DSL</a>
and Spring will help your configure the Camel context as the <a shape="rect" href="spring-java-config-example.html">Spring
Java Config Example</a> shows.</p></div>
         </td>
         <td valign="top">
           <div class="navigation">



Mime
View raw message