You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2011/07/21 11:24:03 UTC

svn commit: r1149088 [1/3] - in /camel/trunk/examples: camel-example-aggregate/src/main/resources/META-INF/spring/ camel-example-bam/src/main/resources/META-INF/spring/ camel-example-cafe/src/main/resources/META-INF/ camel-example-cafe/src/main/resourc...

Author: davsclaus
Date: Thu Jul 21 09:23:46 2011
New Revision: 1149088

URL: http://svn.apache.org/viewvc?rev=1149088&view=rev
Log:
CAMEL-4253: Polished examples.

Removed:
    camel/trunk/examples/camel-example-docs/src/main/java/org/apache/camel/example/docs/
    camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/java/org/apache/camel/example/reportincident/ReportIncidentRoutes.java
    camel/trunk/examples/camel-example-reportincident/src/main/resources/org/
Modified:
    camel/trunk/examples/camel-example-aggregate/src/main/resources/META-INF/spring/camel-context.xml
    camel/trunk/examples/camel-example-bam/src/main/resources/META-INF/spring/camel-context.xml
    camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/beans.xml
    camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/camel-routes.xml
    camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/spring/camel-context.xml
    camel/trunk/examples/camel-example-cxf-blueprint/src/main/resources/OSGI-INF/blueprint/camel-context.xml
    camel/trunk/examples/camel-example-cxf-osgi/src/main/resources/META-INF/spring/camel-context.xml
    camel/trunk/examples/camel-example-cxf-proxy/src/main/resources/META-INF/spring/camel-config.xml
    camel/trunk/examples/camel-example-cxf-tomcat/src/main/resources/camel-config.xml
    camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CamelCXFProviderRouteConfig.xml
    camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CamelTransportSpringConfig.xml
    camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CxfRouteCamelContext.xml
    camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/JAXRSCamelContext.xml
    camel/trunk/examples/camel-example-docs/README.txt
    camel/trunk/examples/camel-example-docs/src/main/resources/META-INF/spring/camel-context.xml
    camel/trunk/examples/camel-example-gae/src/main/resources/context.xml
    camel/trunk/examples/camel-example-gae/src/main/webapp/WEB-INF/appengine-web.xml
    camel/trunk/examples/camel-example-gae/src/main/webapp/WEB-INF/web.xml
    camel/trunk/examples/camel-example-gauth/src/main/resources/context-camel.xml
    camel/trunk/examples/camel-example-gauth/src/main/resources/context-web.xml
    camel/trunk/examples/camel-example-gauth/src/main/webapp/WEB-INF/web.xml
    camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmstofile/CamelJmsToFileExample.java
    camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmstofile/JmsToFileClient.java
    camel/trunk/examples/camel-example-jms-file/src/main/resources/META-INF/spring/camelContext.xml
    camel/trunk/examples/camel-example-jmx/src/main/resources/META-INF/spring/camel-context.xml
    camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-loadbalancer.xml
    camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-mina1.xml
    camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-mina2.xml
    camel/trunk/examples/camel-example-loan-broker/src/main/resources/META-INF/spring/queueCamelContext.xml
    camel/trunk/examples/camel-example-loan-broker/src/main/resources/META-INF/spring/webServiceCamelContext.xml
    camel/trunk/examples/camel-example-management/src/main/resources/META-INF/spring/camel-context.xml
    camel/trunk/examples/camel-example-osgi-rmi/src/main/resources/META-INF/spring/camelContext.xml
    camel/trunk/examples/camel-example-osgi/src/main/resources/META-INF/spring/camelContext.xml
    camel/trunk/examples/camel-example-pojo-messaging/src/main/resources/META-INF/spring/camel-context.xml
    camel/trunk/examples/camel-example-reportincident-wssecurity/src/main/resources/META-INF/spring/camel-context.xml
    camel/trunk/examples/camel-example-reportincident/src/main/resources/META-INF/spring/camel-context.xml
    camel/trunk/examples/camel-example-reportincident/src/main/resources/camel-config.xml
    camel/trunk/examples/camel-example-reportincident/src/main/webapp/WEB-INF/web.xml
    camel/trunk/examples/camel-example-route-throttling/src/main/resources/META-INF/spring/camel-server.xml
    camel/trunk/examples/camel-example-route-throttling/src/main/resources/camel-client.xml
    camel/trunk/examples/camel-example-route-throttling/src/main/resources/camel-file-client.xml
    camel/trunk/examples/camel-example-servlet-tomcat/src/main/resources/camel-config.xml
    camel/trunk/examples/camel-example-servlet-tomcat/src/main/webapp/WEB-INF/web.xml
    camel/trunk/examples/camel-example-simplejirabot/javadsl/src/main/resources/META-INF/spring/camel-context.xml
    camel/trunk/examples/camel-example-simplejirabot/xmlconf/src/main/resources/META-INF/spring/camel-context.xml
    camel/trunk/examples/camel-example-spring-javaconfig/src/main/java/org/apache/camel/example/spring/javaconfig/MyRouteConfig.java
    camel/trunk/examples/camel-example-spring-javaconfig/src/main/resources/META-INF/spring/camel-context.xml
    camel/trunk/examples/camel-example-spring-jms/src/main/resources/META-INF/spring/camel-server-aop.xml
    camel/trunk/examples/camel-example-spring-jms/src/main/resources/META-INF/spring/camel-server.xml
    camel/trunk/examples/camel-example-spring-jms/src/main/resources/camel-client-remoting.xml
    camel/trunk/examples/camel-example-spring-jms/src/main/resources/camel-client.xml
    camel/trunk/examples/camel-example-spring-security/src/main/resources/org/apache/camel/example/spring/security/camel-context.xml
    camel/trunk/examples/camel-example-spring-security/src/main/resources/org/apache/camel/example/spring/security/common-security.xml
    camel/trunk/examples/camel-example-spring-security/src/main/webapp/WEB-INF/applicationContext-security.xml
    camel/trunk/examples/camel-example-spring-security/src/main/webapp/WEB-INF/web.xml
    camel/trunk/examples/camel-example-spring-ws/src/main/webapp/WEB-INF/spring-ws-servlet.xml
    camel/trunk/examples/camel-example-spring-ws/src/main/webapp/WEB-INF/web.xml
    camel/trunk/examples/camel-example-spring-xquery/src/main/resources/META-INF/spring/camelContext.xml
    camel/trunk/examples/camel-example-spring/src/main/java/org/apache/camel/example/spring/MyRouteBuilder.java
    camel/trunk/examples/camel-example-spring/src/main/resources/META-INF/spring/camel-context.xml
    camel/trunk/examples/camel-example-tracer/src/main/resources/META-INF/persistence.xml
    camel/trunk/examples/camel-example-tracer/src/main/resources/META-INF/spring/camel-context.xml

Modified: camel/trunk/examples/camel-example-aggregate/src/main/resources/META-INF/spring/camel-context.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-aggregate/src/main/resources/META-INF/spring/camel-context.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-aggregate/src/main/resources/META-INF/spring/camel-context.xml (original)
+++ camel/trunk/examples/camel-example-aggregate/src/main/resources/META-INF/spring/camel-context.xml Thu Jul 21 09:23:46 2011
@@ -24,39 +24,44 @@
         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
         http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
 
-    <!-- this is our aggregation strategy which can aggregate the numbers received as input -->
-    <bean id="myStrategy" class="org.apache.camel.example.NumberAggregationStrategy"/>
+  <!-- this is our aggregation strategy which can aggregate the numbers received as input -->
+  <bean id="myStrategy" class="org.apache.camel.example.NumberAggregationStrategy"/>
 
-    <!-- this is the persistent repository to store aggregated messages -->
-    <bean id="myRepo" class="org.apache.camel.component.hawtdb.HawtDBAggregationRepository">
-        <!-- use data/hawtdb.dat as the persistent store -->
-        <property name="persistentFileName" value="data/hawtdb.dat"/>
-        <!-- the repo must have an unique name,
-             as you can have multiple repositories in the same file -->
-        <property name="repositoryName" value="myCoolRepo"/>
-        <!-- the repo file segment size -->
-        <property name="bufferSize" value="602400"/>
-    </bean>
+  <!-- this is the persistent repository to store aggregated messages -->
+  <bean id="myRepo" class="org.apache.camel.component.hawtdb.HawtDBAggregationRepository">
+    <!-- use data/hawtdb.dat as the persistent store -->
+    <property name="persistentFileName" value="data/hawtdb.dat"/>
+    <!-- the repo must have an unique name, as you can have multiple repositories in the same file -->
+    <property name="repositoryName" value="myCoolRepo"/>
+    <!-- the repo file segment size -->
+    <property name="bufferSize" value="602400"/>
+  </bean>
 
-    <!-- this is the camel route which asks for input and aggregates the number -->
-    <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
-        <route>
-            <!-- ask user to enter a number -->
-            <from uri="stream:in?promptMessage=Enter a number to be added (use STOP to end, and ctrl+c to shutdown Camel): &amp;promptDelay=1000"/>
-            <!-- aggregate the input, use eagerCheckCompletion to let the completionPredicate easily detect the STOP command -->
-            <aggregate strategyRef="myStrategy" aggregationRepositoryRef="myRepo" eagerCheckCompletion="true">
-                <!-- aggregate all messages into the same group -->
-                <correlationExpression><constant>true</constant></correlationExpression>
-                <!-- if end user enters STOP then complete the aggregation -->
-                <completionPredicate><simple>${body} contains 'STOP'</simple></completionPredicate>
-                <!-- and transform the completed message to a human readble -->
-                <transform><simple>The result is: ${body}</simple></transform>
-                <!-- which is printed on the console -->
-                <to uri="stream:out"/>
-            </aggregate>
-        </route>
+  <!-- this is the camel route which asks for input and aggregates the number -->
+  <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
+    <route>
+      <!-- ask user to enter a number -->
+      <from uri="stream:in?promptMessage=Enter a number to be added (use STOP to end, and ctrl+c to shutdown Camel): &amp;promptDelay=1000"/>
+      <!-- aggregate the input, use eagerCheckCompletion to let the completionPredicate easily detect the STOP command -->
+      <aggregate strategyRef="myStrategy" aggregationRepositoryRef="myRepo" eagerCheckCompletion="true">
+        <!-- aggregate all messages into the same group -->
+        <correlationExpression>
+          <constant>true</constant>
+        </correlationExpression>
+        <!-- if end user enters STOP then complete the aggregation -->
+        <completionPredicate>
+          <simple>${body} contains 'STOP'</simple>
+        </completionPredicate>
+        <!-- and transform the completed message to a human readable -->
+        <transform>
+          <simple>The result is: ${body}</simple>
+        </transform>
+        <!-- which is printed on the console -->
+        <to uri="stream:out"/>
+      </aggregate>
+    </route>
 
-    </camelContext>
+  </camelContext>
 
 </beans>
-<!-- END SNIPPET: e1 -->
+  <!-- END SNIPPET: e1 -->

Modified: camel/trunk/examples/camel-example-bam/src/main/resources/META-INF/spring/camel-context.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-bam/src/main/resources/META-INF/spring/camel-context.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-bam/src/main/resources/META-INF/spring/camel-context.xml (original)
+++ camel/trunk/examples/camel-example-bam/src/main/resources/META-INF/spring/camel-context.xml Thu Jul 21 09:23:46 2011
@@ -24,56 +24,44 @@
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
 
-    <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
-        <routeBuilder ref="activities"/>
-    </camelContext>
-
-    <!-- the builder with our activities -->
-    <bean id="activities" class="org.apache.camel.example.bam.MyActivities">
-        <property name="jpaTemplate" ref="jpaTemplate"/>
-        <property name="transactionTemplate" ref="transactionTemplate"/>
-    </bean>
-
-    <bean id="transactionTemplate" class="org.springframework.transaction.support.TransactionTemplate">
-        <property name="transactionManager">
-            <bean class="org.springframework.orm.jpa.JpaTransactionManager">
-                <property name="entityManagerFactory" ref="entityManagerFactory"/>
-            </bean>
-        </property>
-    </bean>
+  <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
+    <routeBuilder ref="activities"/>
+  </camelContext>
+
+  <!-- the builder with our activities -->
+  <bean id="activities" class="org.apache.camel.example.bam.MyActivities">
+    <property name="jpaTemplate" ref="jpaTemplate"/>
+    <property name="transactionTemplate" ref="transactionTemplate"/>
+  </bean>
 
-    <bean id="jpaTemplate" class="org.springframework.orm.jpa.JpaTemplate">
+  <bean id="transactionTemplate" class="org.springframework.transaction.support.TransactionTemplate">
+    <property name="transactionManager">
+      <bean class="org.springframework.orm.jpa.JpaTransactionManager">
         <property name="entityManagerFactory" ref="entityManagerFactory"/>
-    </bean>
+      </bean>
+    </property>
+  </bean>
+
+  <bean id="jpaTemplate" class="org.springframework.orm.jpa.JpaTemplate">
+    <property name="entityManagerFactory" ref="entityManagerFactory"/>
+  </bean>
+
+  <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
+    <property name="persistenceUnitName" value="bam"/>
+    <property name="jpaVendorAdapter" ref="jpaAdapter"/>
+    <property name="dataSource" ref="dataSource"/>
+  </bean>
+
+  <bean id="jpaAdapter" class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
+    <property name="databasePlatform" value="org.hibernate.dialect.HSQLDialect"/>
+  </bean>
 
-    <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
-        <property name="persistenceUnitName" value="bam"/>
-        <property name="jpaVendorAdapter" ref="jpaAdapter"/>
-        <property name="dataSource" ref="dataSource" />
-    </bean>
-    
-    <bean id="jpaAdapter"
-        class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
-        <property name="databasePlatform" value="org.hibernate.dialect.HSQLDialect" />
-    </bean>
-  
   <!--  DataSource Definition -->
   <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
-        <property name="driverClassName" value="org.hsqldb.jdbcDriver" />
-        <property name="url" value="jdbc:hsqldb:mem:camel_bam" />
-        <property name="username" value="sa" />
-        <property name="password" value="" />
-  </bean>
-
-    <!-- let's show a simple UI to browse the database -->
-    <!-- bean id="databaseExplorer" class="org.apache.camel.spring.util.MainRunner" lazy-init="false">
-        <property name="main" value="org.hsqldb.util.DatabaseManagerSwing"/>
-        <property name="args">
-            <list>
-                <value>url</value>
-                <value>jdbc:hsqldb:mem:camel_bam</value>
-            </list>
-        </property>
-        <property name="delay" value="1000"/>
-    </bean-->
+    <property name="driverClassName" value="org.hsqldb.jdbcDriver"/>
+    <property name="url" value="jdbc:hsqldb:mem:camel_bam"/>
+    <property name="username" value="sa"/>
+    <property name="password" value=""/>
+  </bean>
+
 </beans>

Modified: camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/beans.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/beans.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/beans.xml (original)
+++ camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/beans.xml Thu Jul 21 09:23:46 2011
@@ -21,11 +21,11 @@
        xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
-  
+
   <bean id="aggregatorStrategy" class="org.apache.camel.example.cafe.stuff.CafeAggregationStrategy"/>
   <bean id="orderSplitter" class="org.apache.camel.example.cafe.stuff.OrderSplitter"/>
   <bean id="drinkRouter" class="org.apache.camel.example.cafe.stuff.DrinkRouter"/>
   <bean id="waiter" class="org.apache.camel.example.cafe.stuff.Waiter"/>
   <bean id="barista" class="org.apache.camel.example.cafe.stuff.Barista"/>
-  
+
 </beans>

Modified: camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/camel-routes.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/camel-routes.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/camel-routes.xml (original)
+++ camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/camel-routes.xml Thu Jul 21 09:23:46 2011
@@ -21,49 +21,49 @@
        xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
- 
+
   <import resource="classpath:META-INF/beans.xml"/>
-  
-  <!-- START SNIPPET: e1 --> 
+
+  <!-- START SNIPPET: e1 -->
   <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
 
-     <route>
-         <from uri="direct:cafe"/>
-         <split>
-            <method bean="orderSplitter"/>
-            <to uri="direct:drink"/>
-        </split>
-     </route>
-
-     <route>
-         <from uri="direct:drink" />
-         <recipientList>
-            <method bean="drinkRouter"/>
-         </recipientList>
-     </route>
-
-     <route>
-         <from uri="seda:coldDrinks?concurrentConsumers=2"/>
-         <to uri="bean:barista?method=prepareColdDrink"/>
-         <to uri="direct:deliveries"/>
-     </route>
-
-     <route>
-         <from uri="seda:hotDrinks?concurrentConsumers=3"/>
-         <to uri="bean:barista?method=prepareHotDrink"/>
-         <to uri="direct:deliveries"/>
-     </route>
-
-     <route>
-         <from uri="direct:deliveries"/>
-         <aggregate strategyRef="aggregatorStrategy" completionTimeout="5000">
-             <correlationExpression>  
-                 <method bean="waiter" method="checkOrder" />
-             </correlationExpression>  
-      	     <to uri="bean:waiter?method=prepareDelivery"/>
-      	     <to uri="bean:waiter?method=deliverCafes"/>
-         </aggregate>
-     </route>
+    <route>
+      <from uri="direct:cafe"/>
+      <split>
+        <method bean="orderSplitter"/>
+        <to uri="direct:drink"/>
+      </split>
+    </route>
+
+    <route>
+      <from uri="direct:drink"/>
+      <recipientList>
+        <method bean="drinkRouter"/>
+      </recipientList>
+    </route>
+
+    <route>
+      <from uri="seda:coldDrinks?concurrentConsumers=2"/>
+      <to uri="bean:barista?method=prepareColdDrink"/>
+      <to uri="direct:deliveries"/>
+    </route>
+
+    <route>
+      <from uri="seda:hotDrinks?concurrentConsumers=3"/>
+      <to uri="bean:barista?method=prepareHotDrink"/>
+      <to uri="direct:deliveries"/>
+    </route>
+
+    <route>
+      <from uri="direct:deliveries"/>
+      <aggregate strategyRef="aggregatorStrategy" completionTimeout="5000">
+        <correlationExpression>
+          <method bean="waiter" method="checkOrder"/>
+        </correlationExpression>
+        <to uri="bean:waiter?method=prepareDelivery"/>
+        <to uri="bean:waiter?method=deliverCafes"/>
+      </aggregate>
+    </route>
 
   </camelContext>
   <!-- END SNIPPET: e1 -->

Modified: camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/spring/camel-context.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/spring/camel-context.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/spring/camel-context.xml (original)
+++ camel/trunk/examples/camel-example-cafe/src/main/resources/META-INF/spring/camel-context.xml Thu Jul 21 09:23:46 2011
@@ -21,10 +21,10 @@
        xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
- 
+
   <import resource="classpath:META-INF/camel-routes.xml"/>
-  
+
   <!-- The customer beans which send the cafe order every 60 seconds -->
   <bean id="customer" class="org.apache.camel.example.cafe.Customer"/>
-  
+
 </beans>

Modified: camel/trunk/examples/camel-example-cxf-blueprint/src/main/resources/OSGI-INF/blueprint/camel-context.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf-blueprint/src/main/resources/OSGI-INF/blueprint/camel-context.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf-blueprint/src/main/resources/OSGI-INF/blueprint/camel-context.xml (original)
+++ camel/trunk/examples/camel-example-cxf-blueprint/src/main/resources/OSGI-INF/blueprint/camel-context.xml Thu Jul 21 09:23:46 2011
@@ -31,8 +31,7 @@
   <camelcxf:cxfEndpoint id="reportIncident"
                         address="/camel-example-cxf-blueprint/webservices/incident"
                         wsdlURL="META-INF/wsdl/report_incident.wsdl"
-                        serviceClass="org.apache.camel.example.reportincident.ReportIncidentEndpoint">
-  </camelcxf:cxfEndpoint>
+                        serviceClass="org.apache.camel.example.reportincident.ReportIncidentEndpoint"/>
 
   <bean id="reportIncidentRoutes" class="org.apache.camel.example.reportincident.ReportIncidentRoutes"/>
 

Modified: camel/trunk/examples/camel-example-cxf-osgi/src/main/resources/META-INF/spring/camel-context.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf-osgi/src/main/resources/META-INF/spring/camel-context.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf-osgi/src/main/resources/META-INF/spring/camel-context.xml (original)
+++ camel/trunk/examples/camel-example-cxf-osgi/src/main/resources/META-INF/spring/camel-context.xml Thu Jul 21 09:23:46 2011
@@ -24,20 +24,19 @@
            http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
            http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
            http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd">
-    <!--Create a new SpringBus -->
-    <import resource="classpath:META-INF/cxf/cxf.xml"/>
-    <!--Make sure the OSGi servlet transport is regirsted with the bus -->
-    <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
 
-    <cxf:cxfEndpoint id="reportIncident"
-                     address="/camel-example-cxf-osgi/webservices/incident"
-                     wsdlURL="META-INF/wsdl/report_incident.wsdl"
-                     serviceClass="org.apache.camel.example.reportincident.ReportIncidentEndpoint">
-    </cxf:cxfEndpoint>
-    
-    <bean id="reportIncidentRoutes" class="org.apache.camel.example.reportincident.ReportIncidentRoutes" />
+  <import resource="classpath:META-INF/cxf/cxf.xml"/>
+  <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml"/>
+
+  <cxf:cxfEndpoint id="reportIncident"
+                   address="/camel-example-cxf-osgi/webservices/incident"
+                   wsdlURL="META-INF/wsdl/report_incident.wsdl"
+                   serviceClass="org.apache.camel.example.reportincident.ReportIncidentEndpoint"/>
+
+  <bean id="reportIncidentRoutes" class="org.apache.camel.example.reportincident.ReportIncidentRoutes"/>
+
+  <camel:camelContext id="camel">
+    <camel:routeBuilder ref="reportIncidentRoutes"/>
+  </camel:camelContext>
 
-    <camel:camelContext id="camel">
-    	<camel:routeBuilder ref="reportIncidentRoutes"/>
-    </camel:camelContext>
 </beans>

Modified: camel/trunk/examples/camel-example-cxf-proxy/src/main/resources/META-INF/spring/camel-config.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf-proxy/src/main/resources/META-INF/spring/camel-config.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf-proxy/src/main/resources/META-INF/spring/camel-config.xml (original)
+++ camel/trunk/examples/camel-example-cxf-proxy/src/main/resources/META-INF/spring/camel-config.xml Thu Jul 21 09:23:46 2011
@@ -26,48 +26,48 @@
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
        http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd">
 
-    <!-- needed cxf imports -->
-    <import resource="classpath:META-INF/cxf/cxf.xml"/>
-    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
-    <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>
-
-    <!-- use a bean to start and stop the real web service (is not Camel specific) -->
-    <!-- in a real use-case the real web service would be located on another server
-         but we simulate this in the same JVM -->
-    <bean id="realWebService" class="org.apache.camel.example.cxf.proxy.RealWebServiceBean"
-          init-method="start" destroy-method="stop">
-        <!-- this is the url of the real web service we have proxied -->
-        <property name="url" value="http://localhost:9081/real-webservice"/>
-    </bean>
-
-    <!-- a bean to enrich the input -->
-    <bean id="enrichBean" class="org.apache.camel.example.cxf.proxy.EnrichBean"/>
-
-    <!-- this is the CXF webservice we use as front end -->
-    <cxf:cxfEndpoint id="reportIncident"
-                     address="http://localhost:9080/camel-example-cxf-proxy/webservices/incident"
-                     endpointName="s:ReportIncidentEndpoint"
-                     serviceName="s:ReportIncidentEndpointService"
-                     wsdlURL="etc/report_incident.wsdl"
-                     xmlns:s="http://reportincident.example.camel.apache.org"/>
-
-    <!-- this is the camel route which proxy the web service and forward it to the real web service -->
-    <camelContext xmlns="http://camel.apache.org/schema/spring">
-
-        <route>
-            <!-- cxf consumer using MESSAGE format -->
-            <from uri="cxf:bean:reportIncident?dataFormat=MESSAGE"/>
-            <!-- log input received -->
-            <to uri="log:input"/>
-            <!-- enrich the input by ensure the incidentId parameter is set -->
-            <to uri="bean:enrichBean"/>
-            <!-- send proxied request to real web service -->
-            <to uri="http://localhost:9081/real-webservice?throwExceptionOnFailure=false"/>
-            <!-- log answer from real web service -->
-            <to uri="log:output"/>
-        </route>
+  <!-- needed cxf imports -->
+  <import resource="classpath:META-INF/cxf/cxf.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>
+
+  <!-- use a bean to start and stop the real web service (is not Camel specific) -->
+  <!-- in a real use-case the real web service would be located on another server
+       but we simulate this in the same JVM -->
+  <bean id="realWebService" class="org.apache.camel.example.cxf.proxy.RealWebServiceBean"
+        init-method="start" destroy-method="stop">
+    <!-- this is the url of the real web service we have proxied -->
+    <property name="url" value="http://localhost:9081/real-webservice"/>
+  </bean>
+
+  <!-- a bean to enrich the input -->
+  <bean id="enrichBean" class="org.apache.camel.example.cxf.proxy.EnrichBean"/>
+
+  <!-- this is the CXF webservice we use as front end -->
+  <cxf:cxfEndpoint id="reportIncident"
+                   address="http://localhost:9080/camel-example-cxf-proxy/webservices/incident"
+                   endpointName="s:ReportIncidentEndpoint"
+                   serviceName="s:ReportIncidentEndpointService"
+                   wsdlURL="etc/report_incident.wsdl"
+                   xmlns:s="http://reportincident.example.camel.apache.org"/>
+
+  <!-- this is the camel route which proxy the web service and forward it to the real web service -->
+  <camelContext xmlns="http://camel.apache.org/schema/spring">
+
+    <route>
+      <!-- cxf consumer using MESSAGE format -->
+      <from uri="cxf:bean:reportIncident?dataFormat=MESSAGE"/>
+      <!-- log input received -->
+      <to uri="log:input"/>
+      <!-- enrich the input by ensure the incidentId parameter is set -->
+      <to uri="bean:enrichBean"/>
+      <!-- send proxied request to real web service -->
+      <to uri="http://localhost:9081/real-webservice?throwExceptionOnFailure=false"/>
+      <!-- log answer from real web service -->
+      <to uri="log:output"/>
+    </route>
 
-    </camelContext>
+  </camelContext>
 
 </beans>
 <!-- END SNIPPET: e1 -->
\ No newline at end of file

Modified: camel/trunk/examples/camel-example-cxf-tomcat/src/main/resources/camel-config.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf-tomcat/src/main/resources/camel-config.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf-tomcat/src/main/resources/camel-config.xml (original)
+++ camel/trunk/examples/camel-example-cxf-tomcat/src/main/resources/camel-config.xml Thu Jul 21 09:23:46 2011
@@ -26,18 +26,16 @@
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
        http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd">
 
-    <!-- needed cxf imports -->
-    <import resource="classpath:META-INF/cxf/cxf.xml"/>
-    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
-    <!-- use the CXF servlet -->
-    <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
-    
-    <bean id="myRoutes" class="org.apache.camel.example.cxf.CamelRoute"/>
-    
-    <camelContext xmlns="http://camel.apache.org/schema/spring">
-        <!-- let Camel automatic find the route in this java package -->
-        <routeBuilder ref="myRoutes"/>
-    </camelContext>
+  <import resource="classpath:META-INF/cxf/cxf.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
+  <!-- when running in Tomcat we use the CXF servlet -->
+  <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
+
+  <bean id="myRoutes" class="org.apache.camel.example.cxf.CamelRoute"/>
+
+  <camelContext xmlns="http://camel.apache.org/schema/spring">
+    <routeBuilder ref="myRoutes"/>
+  </camelContext>
 
 </beans>
 <!-- END SNIPPET: e1 -->
\ No newline at end of file

Modified: camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CamelCXFProviderRouteConfig.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CamelCXFProviderRouteConfig.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CamelCXFProviderRouteConfig.xml (original)
+++ camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CamelCXFProviderRouteConfig.xml Thu Jul 21 09:23:46 2011
@@ -24,35 +24,35 @@
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
     ">
 
-    <!-- START SNIPPET: example -->
+  <!-- START SNIPPET: example -->
 
-    <!--
-    If you want to run this example in a Tomcat container which needs the servlet transport,
-    please replace the cxf-extension-http-jetty.xml with cxf-servlet.xml
-    -->
-
-    <import resource="classpath:META-INF/cxf/cxf.xml"/>
-	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
-	<import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />
-
-    <bean id = "testBean" class="org.apache.camel.example.cxf.provider.TesterBean" />
-
-   	<cxf:cxfEndpoint id="soapMessageEndpoint"
-	        serviceClass="org.apache.camel.example.cxf.provider.GreeterProvider"
-			address="http://localhost:9000/GreeterContext/SOAPMessageService"
-   			wsdlURL="wsdl/hello_world.wsdl"
-   			endpointName="s:SoapOverHttpRouter"
-   			serviceName="s:SOAPService"
-   	    	xmlns:s="http://apache.org/hello_world_soap_http"/>
-
-
-   <camelContext id="test_context" xmlns="http://camel.apache.org/schema/spring">
-       <route>
-            <from uri="cxf:bean:soapMessageEndpoint"/>
-            <to uri="bean:testBean?method=processSOAP"/>
-        </route>
-   </camelContext>
+  <!--
+  If you want to run this example in a Tomcat container which needs the servlet transport,
+  please replace the cxf-extension-http-jetty.xml with cxf-servlet.xml
+  -->
+
+  <import resource="classpath:META-INF/cxf/cxf.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>
+
+  <bean id="testBean" class="org.apache.camel.example.cxf.provider.TesterBean"/>
+
+  <cxf:cxfEndpoint id="soapMessageEndpoint"
+                   serviceClass="org.apache.camel.example.cxf.provider.GreeterProvider"
+                   address="http://localhost:9000/GreeterContext/SOAPMessageService"
+                   wsdlURL="wsdl/hello_world.wsdl"
+                   endpointName="s:SoapOverHttpRouter"
+                   serviceName="s:SOAPService"
+                   xmlns:s="http://apache.org/hello_world_soap_http"/>
+
+
+  <camelContext id="test_context" xmlns="http://camel.apache.org/schema/spring">
+    <route>
+      <from uri="cxf:bean:soapMessageEndpoint"/>
+      <to uri="bean:testBean?method=processSOAP"/>
+    </route>
+  </camelContext>
 
-   <!-- END SNIPPET: example -->
+  <!-- END SNIPPET: example -->
 
 </beans>

Modified: camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CamelTransportSpringConfig.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CamelTransportSpringConfig.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CamelTransportSpringConfig.xml (original)
+++ camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CamelTransportSpringConfig.xml Thu Jul 21 09:23:46 2011
@@ -1,67 +1,62 @@
 <?xml version="1.0" encoding="UTF-8"?>
-	<!--
-		Licensed to the Apache Software Foundation (ASF) under one or more
-		contributor license agreements. See the NOTICE file distributed with
-		this work for additional information regarding copyright ownership.
-		The ASF licenses this file to You under the Apache License, Version
-		2.0 (the "License"); you may not use this file except in compliance
-		with the License. You may obtain a copy of the License at
-
-		http://www.apache.org/licenses/LICENSE-2.0 Unless required by
-		applicable law or agreed to in writing, software distributed under the
-		License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
-		CONDITIONS OF ANY KIND, either express or implied. See the License for
-		the specific language governing permissions and limitations under the
-		License.
-	-->
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements. See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version
+    2.0 (the "License"); you may not use this file except in compliance
+    with the License. You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0 Unless required by
+    applicable law or agreed to in writing, software distributed under the
+    License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+    CONDITIONS OF ANY KIND, either express or implied. See the License for
+    the specific language governing permissions and limitations under the
+    License.
+  -->
 <beans xmlns="http://www.springframework.org/schema/beans"
-	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-	xmlns:jaxws="http://cxf.apache.org/jaxws"
-	xsi:schemaLocation="
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:jaxws="http://cxf.apache.org/jaxws"
+       xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
 
-	<import resource="classpath:META-INF/cxf/cxf.xml" />
-	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
-	<import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />
-
-	<bean id="roundRobinRef"
-		class="org.apache.camel.processor.loadbalancer.RoundRobinLoadBalancer" />
-
-	<bean class="org.apache.camel.component.cxf.transport.CamelTransportFactory" lazy-init="false">
-		<property name="bus" ref="cxf" />
-		<property name="camelContext" ref="dest_context" />
-		<property name="transportIds">
-			<list>
-				<value>http://cxf.apache.org/transports/camel</value>
-			</list>
-		</property>
-	</bean>
-
-	<camelContext id="dest_context" xmlns="http://camel.apache.org/schema/spring">
-		<route>
-			<from uri="jetty:http://localhost:9091/GreeterContext/GreeterPort" />
-			<loadBalance ref="roundRobinRef">
-				<to uri="direct:EndpointA" />
-				<to uri="direct:EndpointB" />
-			</loadBalance>
-		</route>
-	</camelContext>
-
-	<jaxws:endpoint id="endpointA" implementor="#implementorA"
-		address="camel://direct:EndpointA" />
-
-	<jaxws:endpoint id="endpointB" implementor="#implementorB"
-		address="camel://direct:EndpointB" />
-
-	<bean id="implementorA" class="org.apache.camel.example.camel.transport.GreeterImpl">
-		<property name="suffix" value="EndpointA" />
-	</bean>
-
-	<bean id="implementorB" class="org.apache.camel.example.camel.transport.GreeterImpl">
-		<property name="suffix" value="EndpointB" />
-	</bean>
-
+  <import resource="classpath:META-INF/cxf/cxf.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>
+
+  <bean id="roundRobinRef" class="org.apache.camel.processor.loadbalancer.RoundRobinLoadBalancer"/>
+
+  <bean class="org.apache.camel.component.cxf.transport.CamelTransportFactory" lazy-init="false">
+    <property name="bus" ref="cxf"/>
+    <property name="camelContext" ref="dest_context"/>
+    <property name="transportIds">
+      <list>
+        <value>http://cxf.apache.org/transports/camel</value>
+      </list>
+    </property>
+  </bean>
+
+  <camelContext id="dest_context" xmlns="http://camel.apache.org/schema/spring">
+    <route>
+      <from uri="jetty:http://localhost:9091/GreeterContext/GreeterPort"/>
+      <loadBalance ref="roundRobinRef">
+        <to uri="direct:EndpointA"/>
+        <to uri="direct:EndpointB"/>
+      </loadBalance>
+    </route>
+  </camelContext>
+
+  <jaxws:endpoint id="endpointA" implementor="#implementorA" address="camel://direct:EndpointA"/>
+  <jaxws:endpoint id="endpointB" implementor="#implementorB" address="camel://direct:EndpointB"/>
+
+  <bean id="implementorA" class="org.apache.camel.example.camel.transport.GreeterImpl">
+    <property name="suffix" value="EndpointA"/>
+  </bean>
+
+  <bean id="implementorB" class="org.apache.camel.example.camel.transport.GreeterImpl">
+    <property name="suffix" value="EndpointB"/>
+  </bean>
 
 </beans>
\ No newline at end of file

Modified: camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CxfRouteCamelContext.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CxfRouteCamelContext.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CxfRouteCamelContext.xml (original)
+++ camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/CxfRouteCamelContext.xml Thu Jul 21 09:23:46 2011
@@ -26,27 +26,27 @@
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
        http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.5.0.xsd
        http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
-  
-  <import resource="classpath:META-INF/cxf/cxf.xml" />
-  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
-  <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />
-  <import resource="classpath:META-INF/cxf/cxf-extension-jms.xml" />
+
+  <import resource="classpath:META-INF/cxf/cxf.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-jms.xml"/>
 
   <broker:broker id="broker" useJmx="false" persistent="false" dataDirectory="target/activemq">
     <broker:transportConnectors>
-       <broker:transportConnector name="openwire" uri="vm://localhost"/>
+      <broker:transportConnector name="openwire" uri="vm://localhost"/>
     </broker:transportConnectors>
   </broker:broker>
 
   <camel:camelContext id="myCamelContext">
-    <camel:routeBuilder ref="myRouteBuilder"/>    
+    <camel:routeBuilder ref="myRouteBuilder"/>
   </camel:camelContext>
 
   <bean id="myRouteBuilder" class="org.apache.camel.example.cxf.CamelCxfExample$MyRouteBuilder"/>
-  
+
   <jaxws:endpoint id="serviceEndpoint"
-    		implementor="org.apache.camel.example.cxf.GreeterImpl"
-    		address="jms://"/>
-    		
-  
+                  implementor="org.apache.camel.example.cxf.GreeterImpl"
+                  address="jms://"/>
+
+
 </beans>
\ No newline at end of file

Modified: camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/JAXRSCamelContext.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/JAXRSCamelContext.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/JAXRSCamelContext.xml (original)
+++ camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/JAXRSCamelContext.xml Thu Jul 21 09:23:46 2011
@@ -23,13 +23,13 @@
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
 
-  <import resource="classpath:META-INF/cxf/cxf.xml" />
-  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
-  <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />
-  <import resource="classpath:META-INF/cxf/cxf-extension-jms.xml" />
+  <import resource="classpath:META-INF/cxf/cxf.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/>
+  <import resource="classpath:META-INF/cxf/cxf-extension-jms.xml"/>
 
   <camel:camelContext id="cxfrs_context">
-    <camel:package>org.apache.camel.example.cxf.jaxrs</camel:package>    
+    <camel:package>org.apache.camel.example.cxf.jaxrs</camel:package>
   </camel:camelContext>
 
 </beans>

Modified: camel/trunk/examples/camel-example-docs/README.txt
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-docs/README.txt?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-docs/README.txt (original)
+++ camel/trunk/examples/camel-example-docs/README.txt Thu Jul 21 09:23:46 2011
@@ -30,8 +30,7 @@ If the dot executable is in your path, .
 any .dot files under
   target/site/cameldoc
 
-You can see the routing rules by looking at the java code in the
-src/main/java directory and the Spring XML configuration file in
+You can see the routing rules by looking the Spring XML configuration file in
 src/main/resources/META-INF/spring
 
 If you hit any problems please let us know on the Camel Forums

Modified: camel/trunk/examples/camel-example-docs/src/main/resources/META-INF/spring/camel-context.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-docs/src/main/resources/META-INF/spring/camel-context.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-docs/src/main/resources/META-INF/spring/camel-context.xml (original)
+++ camel/trunk/examples/camel-example-docs/src/main/resources/META-INF/spring/camel-context.xml Thu Jul 21 09:23:46 2011
@@ -22,11 +22,8 @@
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
 
-  <camelContext id="main" xmlns="http://camel.apache.org/schema/spring">
-    <package>org.apache.camel.example.docs</package>
-  </camelContext>
+  <camelContext xmlns="http://camel.apache.org/schema/spring">
 
-  <camelContext id="otherRoutes" xmlns="http://camel.apache.org/schema/spring">
     <route>
       <from uri="seda:other.a"/>
       <to uri="seda:other.b"/>
@@ -35,12 +32,13 @@
 
     <route>
       <from uri="seda:queue:order"/>
-	  <filter>
-	     <xpath>/person[@name='Test']</xpath>
-		 <to uri="log:testOrder"/>
-	  </filter>	 
+      <filter>
+        <xpath>/person[@name='Test']</xpath>
+        <to uri="log:testOrder"/>
+      </filter>
       <to uri="bean:processOrder"/>
     </route>
+
   </camelContext>
 
 </beans>

Modified: camel/trunk/examples/camel-example-gae/src/main/resources/context.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-gae/src/main/resources/context.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-gae/src/main/resources/context.xml (original)
+++ camel/trunk/examples/camel-example-gae/src/main/resources/context.xml Thu Jul 21 09:23:46 2011
@@ -1,19 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:camel="http://camel.apache.org/schema/spring"
        xsi:schemaLocation="
-http://www.springframework.org/schema/beans 
-http://www.springframework.org/schema/beans/spring-beans.xsd
-http://camel.apache.org/schema/spring
-http://camel.apache.org/schema/spring/camel-spring.xsd">
-    
-    <camel:camelContext id="camelContext">
-        <camel:jmxAgent id="agent" disabled="true" />
-        <camel:routeBuilder ref="tutorialRouteBuilder"/>
-    </camel:camelContext>
-    
-    <bean id="tutorialRouteBuilder" 
-        class="org.apache.camel.example.gae.TutorialRouteBuilder">
-    </bean>
-    
+         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+         http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
+
+  <camel:camelContext id="camelContext">
+    <!-- JMX is not supported in GAE -->
+    <camel:jmxAgent id="agent" disabled="true"/>
+    <!-- refer to the route to use -->
+    <camel:routeBuilder ref="tutorialRouteBuilder"/>
+  </camel:camelContext>
+
+  <!-- this is our route -->
+  <bean id="tutorialRouteBuilder" class="org.apache.camel.example.gae.TutorialRouteBuilder"/>
+
 </beans>

Modified: camel/trunk/examples/camel-example-gae/src/main/webapp/WEB-INF/appengine-web.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-gae/src/main/webapp/WEB-INF/appengine-web.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-gae/src/main/webapp/WEB-INF/appengine-web.xml (original)
+++ camel/trunk/examples/camel-example-gae/src/main/webapp/WEB-INF/appengine-web.xml Thu Jul 21 09:23:46 2011
@@ -1,4 +1,21 @@
 <?xml version="1.0" encoding="utf-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
 <appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
 	<application>replaceme</application>
 	<version>1</version>

Modified: camel/trunk/examples/camel-example-gae/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-gae/src/main/webapp/WEB-INF/web.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-gae/src/main/webapp/WEB-INF/web.xml (original)
+++ camel/trunk/examples/camel-example-gae/src/main/webapp/WEB-INF/web.xml Thu Jul 21 09:23:46 2011
@@ -1,46 +1,61 @@
 <?xml version="1.0" encoding="utf-8"?>
-<web-app 
-xmlns="http://java.sun.com/xml/ns/javaee"
-xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-xsi:schemaLocation="
-http://java.sun.com/xml/ns/javaee
-http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
-    
-    <servlet>
-        <servlet-name>CamelServlet</servlet-name>
-        <servlet-class>org.apache.camel.component.servlet.CamelHttpTransportServlet</servlet-class>
-        <init-param>
-            <param-name>contextConfigLocation</param-name>
-            <param-value>context.xml</param-value>
-        </init-param>
-    </servlet>
-
-    <servlet-mapping>
-        <servlet-name>CamelServlet</servlet-name>
-        <url-pattern>/camel/*</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>CamelServlet</servlet-name>
-        <url-pattern>/worker/*</url-pattern>
-    </servlet-mapping>
-    
-    <security-constraint>
-        <web-resource-collection>
-            <url-pattern>/*</url-pattern>
-        </web-resource-collection>
-        <auth-constraint>
-            <role-name>*</role-name>
-        </auth-constraint>
-    </security-constraint>
-    <security-constraint>
-        <web-resource-collection>
-            <url-pattern>/worker/*</url-pattern>
-        </web-resource-collection>
-        <auth-constraint>
-            <role-name>admin</role-name>
-        </auth-constraint>
-    </security-constraint>
-    
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+         xsi:schemaLocation="
+           http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+         version="2.5">
+
+  <servlet>
+    <servlet-name>CamelServlet</servlet-name>
+    <servlet-class>org.apache.camel.component.servlet.CamelHttpTransportServlet</servlet-class>
+    <init-param>
+      <param-name>contextConfigLocation</param-name>
+      <param-value>context.xml</param-value>
+    </init-param>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>CamelServlet</servlet-name>
+    <url-pattern>/camel/*</url-pattern>
+  </servlet-mapping>
+  <servlet-mapping>
+    <servlet-name>CamelServlet</servlet-name>
+    <url-pattern>/worker/*</url-pattern>
+  </servlet-mapping>
+
+  <security-constraint>
+    <web-resource-collection>
+      <url-pattern>/*</url-pattern>
+    </web-resource-collection>
+    <auth-constraint>
+      <role-name>*</role-name>
+    </auth-constraint>
+  </security-constraint>
+  <security-constraint>
+    <web-resource-collection>
+      <url-pattern>/worker/*</url-pattern>
+    </web-resource-collection>
+    <auth-constraint>
+      <role-name>admin</role-name>
+    </auth-constraint>
+  </security-constraint>
+
 </web-app>
 

Modified: camel/trunk/examples/camel-example-gauth/src/main/resources/context-camel.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-gauth/src/main/resources/context-camel.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-gauth/src/main/resources/context-camel.xml (original)
+++ camel/trunk/examples/camel-example-gauth/src/main/resources/context-camel.xml Thu Jul 21 09:23:46 2011
@@ -22,28 +22,26 @@
        xmlns:context="http://www.springframework.org/schema/context"
        xmlns:camel="http://camel.apache.org/schema/spring"
        xsi:schemaLocation="
-http://www.springframework.org/schema/beans 
-http://www.springframework.org/schema/beans/spring-beans.xsd
-http://www.springframework.org/schema/context
-http://www.springframework.org/schema/context/spring-context.xsd
-http://camel.apache.org/schema/spring
-http://camel.apache.org/schema/spring/camel-spring.xsd">
-    
-    <context:property-placeholder location="classpath:context.properties"/>
-    
-    <camel:camelContext id="camelContext">
-        <camel:jmxAgent id="agent" disabled="true" />
-        <camel:routeBuilder ref="tutorialRouteBuilder"/>
-    </camel:camelContext>
-    
-    <bean id="tutorialRouteBuilder" 
-        class="org.apache.camel.example.gauth.TutorialRouteBuilder">
-        <property name="application" value="${application.name}" />
-    </bean>
-    
-    <bean id="gauth" class="org.apache.camel.component.gae.auth.GAuthComponent">
-        <property name="consumerKey" value="${consumer.key}" />
-        <property name="consumerSecret" value="${consumer.secret}" />
-    </bean>
-    
+         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+         http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
+         http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
+
+  <context:property-placeholder location="classpath:context.properties"/>
+
+  <camel:camelContext id="camelContext">
+    <!-- JMX is not supported in GAE -->
+    <camel:jmxAgent id="agent" disabled="true"/>
+    <!-- refer to the route to use -->
+    <camel:routeBuilder ref="tutorialRouteBuilder"/>
+  </camel:camelContext>
+
+  <bean id="tutorialRouteBuilder" class="org.apache.camel.example.gauth.TutorialRouteBuilder">
+    <property name="application" value="${application.name}"/>
+  </bean>
+
+  <bean id="gauth" class="org.apache.camel.component.gae.auth.GAuthComponent">
+    <property name="consumerKey" value="${consumer.key}"/>
+    <property name="consumerSecret" value="${consumer.secret}"/>
+  </bean>
+
 </beans>

Modified: camel/trunk/examples/camel-example-gauth/src/main/resources/context-web.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-gauth/src/main/resources/context-web.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-gauth/src/main/resources/context-web.xml (original)
+++ camel/trunk/examples/camel-example-gauth/src/main/resources/context-web.xml Thu Jul 21 09:23:46 2011
@@ -18,23 +18,20 @@
 -->
 
 <beans xmlns="http://www.springframework.org/schema/beans"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xmlns:ctx="http://www.springframework.org/schema/context"
-    xmlns:util="http://www.springframework.org/schema/util"
-    xsi:schemaLocation="
-http://www.springframework.org/schema/beans 
-http://www.springframework.org/schema/beans/spring-beans.xsd
-http://www.springframework.org/schema/context 
-http://www.springframework.org/schema/context/spring-context.xsd
-http://www.springframework.org/schema/util
-http://www.springframework.org/schema/util/spring-util.xsd">
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:ctx="http://www.springframework.org/schema/context"
+       xmlns:util="http://www.springframework.org/schema/util"
+       xsi:schemaLocation="
+         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+         http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
+         http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
 
-    <ctx:component-scan base-package="org.apache.camel.example.gauth"/>
+  <ctx:component-scan base-package="org.apache.camel.example.gauth"/>
+
+  <util:properties id="credentials" location="classpath:context.properties"/>
+
+  <bean id="tutorialService" class="org.apache.camel.example.gauth.TutorialService">
+    <property name="credentials" ref="credentials"/>
+  </bean>
 
-    <util:properties id="credentials" location="classpath:context.properties"/>
-        
-    <bean id="tutorialService" class="org.apache.camel.example.gauth.TutorialService">
-        <property name="credentials" ref="credentials" />
-    </bean>
-    
 </beans>
\ No newline at end of file

Modified: camel/trunk/examples/camel-example-gauth/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-gauth/src/main/webapp/WEB-INF/web.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-gauth/src/main/webapp/WEB-INF/web.xml (original)
+++ camel/trunk/examples/camel-example-gauth/src/main/webapp/WEB-INF/web.xml Thu Jul 21 09:23:46 2011
@@ -17,40 +17,39 @@
   limitations under the License.
 -->
 
-<web-app 
-xmlns="http://java.sun.com/xml/ns/javaee"
-xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
-xsi:schemaLocation="
-http://java.sun.com/xml/ns/javaee
-http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
-    
-    <servlet>
-        <servlet-name>CamelServlet</servlet-name>
-        <servlet-class>org.apache.camel.component.servlet.CamelHttpTransportServlet</servlet-class>
-        <init-param>
-            <param-name>contextConfigLocation</param-name>
-            <param-value>context-camel.xml</param-value>
-        </init-param>
-    </servlet>
-
-    <servlet>
-        <servlet-name>oauth</servlet-name>
-        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
-        <init-param>
-            <param-name>contextConfigLocation</param-name>
-            <param-value>/WEB-INF/classes/context-web.xml</param-value>
-        </init-param>       
-    </servlet>
-    
-    <servlet-mapping>
-        <servlet-name>oauth</servlet-name>
-        <url-pattern>/oauth/*</url-pattern>
-    </servlet-mapping>
-    <servlet-mapping>
-        <servlet-name>CamelServlet</servlet-name>
-        <url-pattern>/camel/*</url-pattern>
-    </servlet-mapping>
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+         xsi:schemaLocation="
+           http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+         version="2.5">
+
+  <servlet>
+    <servlet-name>CamelServlet</servlet-name>
+    <servlet-class>org.apache.camel.component.servlet.CamelHttpTransportServlet</servlet-class>
+    <init-param>
+      <param-name>contextConfigLocation</param-name>
+      <param-value>context-camel.xml</param-value>
+    </init-param>
+  </servlet>
+
+  <servlet>
+    <servlet-name>oauth</servlet-name>
+    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
+    <init-param>
+      <param-name>contextConfigLocation</param-name>
+      <param-value>/WEB-INF/classes/context-web.xml</param-value>
+    </init-param>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>oauth</servlet-name>
+    <url-pattern>/oauth/*</url-pattern>
+  </servlet-mapping>
+  <servlet-mapping>
+    <servlet-name>CamelServlet</servlet-name>
+    <url-pattern>/camel/*</url-pattern>
+  </servlet-mapping>
 
 </web-app>
 

Modified: camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmstofile/CamelJmsToFileExample.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmstofile/CamelJmsToFileExample.java?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmstofile/CamelJmsToFileExample.java (original)
+++ camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmstofile/CamelJmsToFileExample.java Thu Jul 21 09:23:46 2011
@@ -46,7 +46,7 @@ public final class CamelJmsToFileExample
         // Set up the ActiveMQ JMS Components
         // START SNIPPET: e2
         ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
-        // Note we can explicity name the component
+        // Note we can explicit name the component
         context.addComponent("test-jms", JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
         // END SNIPPET: e2
         // Add some configuration by hand ...

Modified: camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmstofile/JmsToFileClient.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmstofile/JmsToFileClient.java?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmstofile/JmsToFileClient.java (original)
+++ camel/trunk/examples/camel-example-jms-file/src/main/java/org/apache/camel/example/jmstofile/JmsToFileClient.java Thu Jul 21 09:23:46 2011
@@ -34,18 +34,23 @@ public final class JmsToFileClient {
     public static void main(String args[]) throws Exception {
         
         CamelContext context = new DefaultCamelContext();
-       
+
+        // add the ActiveMQ component
         ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:51616");
-        
         context.addComponent("test-jms", JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
-        
+
+        // create a template to use for sending messages to ActiveMQ
         ProducerTemplate template = context.createProducerTemplate();
-        
+
+        // start Camel
         context.start();
         
         for (int i = 0; i < 10; i++) {
             template.sendBody("test-jms:queue:test.queue", "Test Message: " + i);
         }
+
+        // stop Camel
+        context.stop();
     }
 
 }

Modified: camel/trunk/examples/camel-example-jms-file/src/main/resources/META-INF/spring/camelContext.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-jms-file/src/main/resources/META-INF/spring/camelContext.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-jms-file/src/main/resources/META-INF/spring/camelContext.xml (original)
+++ camel/trunk/examples/camel-example-jms-file/src/main/resources/META-INF/spring/camelContext.xml Thu Jul 21 09:23:46 2011
@@ -21,27 +21,30 @@
        xmlns:camel="http://camel.apache.org/schema/spring"
        xmlns:broker="http://activemq.apache.org/schema/core"
        xsi:schemaLocation="
-       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
-       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
-       http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.5.0.xsd">
-    
-    <!-- lets configure the ActiveMQ JMS broker server to listen on TCP 51616 -->
-    <broker:broker id="broker" useJmx="false" persistent="false" brokerName="localhost">
-        <broker:transportConnectors>
-            <broker:transportConnector name="tcp" uri="tcp://localhost:51616"/>
-        </broker:transportConnectors>
-    </broker:broker>
-    
-    <!-- lets configure the Camel ActiveMQ to use the ActiveMQ broker declared above -->
-    <bean id="test-jms" class="org.apache.activemq.camel.component.ActiveMQComponent">
-        <property name="brokerURL" value="tcp://localhost:51616"/>
-    </bean>
-    
-    <bean id="jmsToFileRoute" class="org.apache.camel.example.jmstofile.JmsToFileRoute"/>
-    
-    <camel:camelContext id="camelContext">
-       <camel:routeBuilder ref="jmsToFileRoute"/>
-    </camel:camelContext>
+         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+         http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
+         http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.5.0.xsd">
+
+  <!-- lets configure the ActiveMQ JMS broker server to listen on TCP 51616 -->
+  <broker:broker id="broker" useJmx="false" persistent="false" brokerName="localhost">
+    <broker:transportConnectors>
+      <broker:transportConnector name="tcp" uri="tcp://localhost:51616"/>
+    </broker:transportConnectors>
+  </broker:broker>
+
+  <!-- lets configure the Camel ActiveMQ to use the ActiveMQ broker declared above -->
+  <bean id="test-jms" class="org.apache.activemq.camel.component.ActiveMQComponent">
+    <property name="brokerURL" value="tcp://localhost:51616"/>
+  </bean>
+
+  <!-- the route -->
+  <bean id="jmsToFileRoute" class="org.apache.camel.example.jmstofile.JmsToFileRoute"/>
+
+  <!-- Camel -->
+  <camel:camelContext id="camelContext">
+    <!-- refer to the route to use -->
+    <camel:routeBuilder ref="jmsToFileRoute"/>
+  </camel:camelContext>
 
 
 </beans>

Modified: camel/trunk/examples/camel-example-jmx/src/main/resources/META-INF/spring/camel-context.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-jmx/src/main/resources/META-INF/spring/camel-context.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-jmx/src/main/resources/META-INF/spring/camel-context.xml (original)
+++ camel/trunk/examples/camel-example-jmx/src/main/resources/META-INF/spring/camel-context.xml Thu Jul 21 09:23:46 2011
@@ -21,15 +21,15 @@
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="
-       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
-       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
+         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+         http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
 
-    <!-- this is Camel -->
-    <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
-       <routeBuilder ref="myRouteBuilder"/>
-    </camelContext>
+  <!-- this is Camel -->
+  <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
+    <routeBuilder ref="myRouteBuilder"/>
+  </camelContext>
 
-    <!-- this is our route -->
-    <bean id="myRouteBuilder" class="org.apache.camel.example.jmx.MyRouteBuilder"/>
+  <!-- this is our route -->
+  <bean id="myRouteBuilder" class="org.apache.camel.example.jmx.MyRouteBuilder"/>
 
 </beans>

Modified: camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-loadbalancer.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-loadbalancer.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-loadbalancer.xml (original)
+++ camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-loadbalancer.xml Thu Jul 21 09:23:46 2011
@@ -1,53 +1,50 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements.  See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
 -->
 
 <!-- Configures the Camel Context-->
 
 <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:camel="http://camel.apache.org/schema/spring"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd
- http://camel.apache.org/schema/spring
- http://camel.apache.org/schema/spring/camel-spring.xsd ">
- 
-<bean id="service" class="org.apache.camel.example.service.Generator"/> 
-
-<camelContext xmlns="http://camel.apache.org/schema/spring" trace="false">
-    <package>
-        com.intuit.ai.step.camel 
-    </package>
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:camel="http://camel.apache.org/schema/spring"
+       xsi:schemaLocation="
+         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+         http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
+
+  <bean id="service" class="org.apache.camel.example.service.Generator"/>
+
+  <camelContext xmlns="http://camel.apache.org/schema/spring" trace="false">
+
     <route id="sendMessage">
-    	<from uri="timer://org.apache.camel.example.loadbalancer?fixedRate=true&amp;period=60000"/>
-    	<bean ref="service" method="createReport"/>
-    	<to uri="direct:loadbalance"/>
+      <from uri="timer://org.apache.camel.example.loadbalancer?fixedRate=true&amp;period=60000"/>
+      <bean ref="service" method="createReport"/>
+      <to uri="direct:loadbalance"/>
     </route>
-    
+
     <route id="loadbalancer">
-        <from uri="direct:loadbalance"/>
-        <loadBalance>
-            <roundRobin/>
-            <to uri="mina:tcp://localhost:9999?sync=true&amp;allowDefaultCodec=true"/>
-            <to uri="mina:tcp://localhost:9998?sync=true&amp;allowDefaultCodec=true"/>
-        </loadBalance>
-        <to uri="log:org.apache.camel.example?level=INFO"/>
+      <from uri="direct:loadbalance"/>
+      <loadBalance>
+        <roundRobin/>
+        <to uri="mina:tcp://localhost:9999?sync=true&amp;allowDefaultCodec=true"/>
+        <to uri="mina:tcp://localhost:9998?sync=true&amp;allowDefaultCodec=true"/>
+      </loadBalance>
+      <to uri="log:org.apache.camel.example?level=INFO"/>
     </route>
-</camelContext>
+
+  </camelContext>
 
 </beans>

Modified: camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-mina1.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-mina1.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-mina1.xml (original)
+++ camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-mina1.xml Thu Jul 21 09:23:46 2011
@@ -1,40 +1,42 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements.  See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
 -->
 
 <!-- Configures the Camel Context-->
 
 <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:camel="http://camel.apache.org/schema/spring"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd
- http://camel.apache.org/schema/spring
- http://camel.apache.org/schema/spring/camel-spring.xsd ">
- 
-<bean id="service" class="org.apache.camel.example.service.Reporting"/> 
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:camel="http://camel.apache.org/schema/spring"
+       xsi:schemaLocation="
+         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+         http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
+
+  <bean id="service" class="org.apache.camel.example.service.Reporting"/>
+
+  <camelContext xmlns="http://camel.apache.org/schema/spring" trace="false">
 
-<camelContext xmlns="http://camel.apache.org/schema/spring" trace="false">
     <route id="mina1">
-        <from uri="mina:tcp://localhost:9999"/>
-        <setHeader headerName="minaServer"><constant>localhost:9999</constant></setHeader>
-		<bean ref="service" method="updateReport"/>
+      <from uri="mina:tcp://localhost:9999"/>
+      <setHeader headerName="minaServer">
+        <constant>localhost:9999</constant>
+      </setHeader>
+      <bean ref="service" method="updateReport"/>
     </route>
-</camelContext>
+
+  </camelContext>
 
 </beans>
\ No newline at end of file

Modified: camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-mina2.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-mina2.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-mina2.xml (original)
+++ camel/trunk/examples/camel-example-loadbalancing/src/main/resources/META-INF/spring/camel-context-mina2.xml Thu Jul 21 09:23:46 2011
@@ -1,40 +1,42 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-Licensed to the Apache Software Foundation (ASF) under one or more
-contributor license agreements.  See the NOTICE file distributed with
-this work for additional information regarding copyright ownership.
-The ASF licenses this file to You under the Apache License, Version 2.0
-(the "License"); you may not use this file except in compliance with
-the License.  You may obtain a copy of the License at
-
-http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
 -->
 
 <!-- Configures the Camel Context-->
 
 <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:camel="http://camel.apache.org/schema/spring"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd
- http://camel.apache.org/schema/spring
- http://camel.apache.org/schema/spring/camel-spring.xsd ">
- 
-<bean id="service" class="org.apache.camel.example.service.Reporting"/>  
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:camel="http://camel.apache.org/schema/spring"
+       xsi:schemaLocation="
+         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+         http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
+
+  <bean id="service" class="org.apache.camel.example.service.Reporting"/>
+
+  <camelContext xmlns="http://camel.apache.org/schema/spring" trace="false">
 
-<camelContext xmlns="http://camel.apache.org/schema/spring" trace="false">
     <route id="mina1">
-        <from uri="mina:tcp://localhost:9998"/>
-        <setHeader headerName="minaServer"><constant>localhost:9998</constant></setHeader>
-        <bean ref="service" method="updateReport"/>
+      <from uri="mina:tcp://localhost:9998"/>
+      <setHeader headerName="minaServer">
+        <constant>localhost:9998</constant>
+      </setHeader>
+      <bean ref="service" method="updateReport"/>
     </route>
-</camelContext>
+
+  </camelContext>
 
 </beans>
\ No newline at end of file

Modified: camel/trunk/examples/camel-example-loan-broker/src/main/resources/META-INF/spring/queueCamelContext.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-loan-broker/src/main/resources/META-INF/spring/queueCamelContext.xml?rev=1149088&r1=1149087&r2=1149088&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-loan-broker/src/main/resources/META-INF/spring/queueCamelContext.xml (original)
+++ camel/trunk/examples/camel-example-loan-broker/src/main/resources/META-INF/spring/queueCamelContext.xml Thu Jul 21 09:23:46 2011
@@ -20,19 +20,20 @@
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:camel="http://camel.apache.org/schema/spring"
        xsi:schemaLocation="
-       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
-       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
-    
-    <!-- lets configure the Camel ActiveMQ to use the ActiveMQ broker declared above -->
-    <bean id="jms" class="org.apache.activemq.camel.component.ActiveMQComponent">
-        <property name="brokerURL" value="tcp://localhost:61616"/>
-    </bean>
-    
-    <bean id="queueLoanBroker" class="org.apache.camel.loanbroker.queue.version.LoanBroker"/>
-    
-    <camel:camelContext id="queue">
-       <camel:routeBuilder ref="queueLoanBroker"/>
-    </camel:camelContext>
+         http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+         http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
 
+  <!-- lets configure the Camel ActiveMQ to use the ActiveMQ broker declared above -->
+  <bean id="jms" class="org.apache.activemq.camel.component.ActiveMQComponent">
+    <property name="brokerURL" value="tcp://localhost:61616"/>
+  </bean>
+
+  <bean id="queueLoanBroker" class="org.apache.camel.loanbroker.queue.version.LoanBroker"/>
+
+  <!-- Camel -->
+  <camel:camelContext id="queue">
+    <!-- refer to the route to use -->
+    <camel:routeBuilder ref="queueLoanBroker"/>
+  </camel:camelContext>
 
 </beans>