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:54 UTC
svn commit: r749164 - in
/camel/branches/camel-1.x/examples/camel-example-osgi: pom.xml
src/main/resources/META-INF/spring/camelContext.xml
Author: ningjiang
Date: Mon Mar 2 03:26:54 2009
New Revision: 749164
URL: http://svn.apache.org/viewvc?rev=749164&view=rev
Log:
CAMEL-1345 update the camel-osgi-example
Modified:
camel/branches/camel-1.x/examples/camel-example-osgi/pom.xml
camel/branches/camel-1.x/examples/camel-example-osgi/src/main/resources/META-INF/spring/camelContext.xml
Modified: camel/branches/camel-1.x/examples/camel-example-osgi/pom.xml
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/examples/camel-example-osgi/pom.xml?rev=749164&r1=749163&r2=749164&view=diff
==============================================================================
--- camel/branches/camel-1.x/examples/camel-example-osgi/pom.xml (original)
+++ camel/branches/camel-1.x/examples/camel-example-osgi/pom.xml Mon Mar 2 03:26:54 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/branches/camel-1.x/examples/camel-example-osgi/src/main/resources/META-INF/spring/camelContext.xml
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/examples/camel-example-osgi/src/main/resources/META-INF/spring/camelContext.xml?rev=749164&r1=749163&r2=749164&view=diff
==============================================================================
--- camel/branches/camel-1.x/examples/camel-example-osgi/src/main/resources/META-INF/spring/camelContext.xml (original)
+++ camel/branches/camel-1.x/examples/camel-example-osgi/src/main/resources/META-INF/spring/camelContext.xml Mon Mar 2 03:26:54 2009
@@ -18,16 +18,18 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:camel="http://activemq.apache.org/camel/schema/spring"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
- http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">
+ http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
+ http://activemq.apache.org/camel/schema/osgi http://activemq.apache.org/camel/schema/osgi/camel-osgi.xsd">
- <camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
- <route>
- <from uri="timer://myTimer?fixedRate=true&period=2000"/>
- <bean ref="myTransform" method="transform"/>
- <to uri="log:ExampleRouter"/>
- </route>
+ <camelContext xmlns="http://activemq.apache.org/camel/schema/osgi">
+ <camel:route>
+ <camel:from uri="timer://myTimer?fixedRate=true&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">