You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2009/03/02 04:26:01 UTC

svn commit: r749163 - in /camel/trunk/examples/camel-example-osgi: pom.xml src/main/resources/META-INF/spring/camelContext.xml

Author: ningjiang
Date: Mon Mar  2 03:26:01 2009
New Revision: 749163

URL: http://svn.apache.org/viewvc?rev=749163&view=rev
Log:
CAMEL-1345 update the camel-osgi-example

Modified:
    camel/trunk/examples/camel-example-osgi/pom.xml
    camel/trunk/examples/camel-example-osgi/src/main/resources/META-INF/spring/camelContext.xml

Modified: camel/trunk/examples/camel-example-osgi/pom.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-osgi/pom.xml?rev=749163&r1=749162&r2=749163&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-osgi/pom.xml (original)
+++ camel/trunk/examples/camel-example-osgi/pom.xml Mon Mar  2 03:26:01 2009
@@ -42,7 +42,14 @@
       <groupId>org.apache.camel</groupId>
       <artifactId>camel-spring</artifactId>
     </dependency>
-
+    <dependency>
+      <groupId>org.apache.camel</groupId>
+      <artifactId>camel-osgi</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.felix</groupId>
+      <artifactId>org.osgi.core</artifactId>      
+    </dependency>
     <!-- for testing -->
     <dependency>
       <groupId>junit</groupId>

Modified: camel/trunk/examples/camel-example-osgi/src/main/resources/META-INF/spring/camelContext.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-osgi/src/main/resources/META-INF/spring/camelContext.xml?rev=749163&r1=749162&r2=749163&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-osgi/src/main/resources/META-INF/spring/camelContext.xml (original)
+++ camel/trunk/examples/camel-example-osgi/src/main/resources/META-INF/spring/camelContext.xml Mon Mar  2 03:26:01 2009
@@ -18,16 +18,19 @@
 
 <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:osgi="http://camel.apache.org/schema/osgi"
+       xmlns:camel="http://camel.apache.org/schema/spring"
        xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
-       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
+       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
+       http://camel.apache.org/schema/osgi http://camel.apache.org/schema/osgi/camel-osgi.xsd">
 
-  <camelContext xmlns="http://camel.apache.org/schema/spring">
-    <route>
-      <from uri="timer://myTimer?fixedRate=true&amp;period=2000"/>
-      <bean ref="myTransform" method="transform"/>
-      <to uri="log:ExampleRouter"/>
-    </route>
+  <camelContext xmlns="http://camel.apache.org/schema/osgi">
+    <camel:route>
+      <camel:from uri="timer://myTimer?fixedRate=true&amp;period=2000"/>
+      <camel:bean ref="myTransform" method="transform"/>
+      <camel:to uri="log:ExampleRouter"/>
+    </camel:route>
   </camelContext>
 
   <bean id="myTransform" class="org.apache.camel.example.osgi.MyTransform">