You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2007/11/14 19:17:50 UTC
svn commit: r595001 - in /activemq/camel/trunk/examples:
camel-example-spring-xquery/ camel-example-spring-xquery/README.txt
camel-example-spring-xquery/pom.xml pom.xml
Author: jstrachan
Date: Wed Nov 14 10:17:47 2007
New Revision: 595001
URL: http://svn.apache.org/viewvc?rev=595001&view=rev
Log:
added a first cut of an example for http://issues.apache.org/activemq/browse/CAMEL-220
Added:
activemq/camel/trunk/examples/camel-example-spring-xquery/
activemq/camel/trunk/examples/camel-example-spring-xquery/README.txt
- copied, changed from r594497, activemq/camel/trunk/examples/camel-example-spring/README.txt
activemq/camel/trunk/examples/camel-example-spring-xquery/pom.xml
- copied, changed from r594497, activemq/camel/trunk/examples/camel-example-spring/pom.xml
Modified:
activemq/camel/trunk/examples/pom.xml
Copied: activemq/camel/trunk/examples/camel-example-spring-xquery/README.txt (from r594497, activemq/camel/trunk/examples/camel-example-spring/README.txt)
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-spring-xquery/README.txt?p2=activemq/camel/trunk/examples/camel-example-spring-xquery/README.txt&p1=activemq/camel/trunk/examples/camel-example-spring/README.txt&r1=594497&r2=595001&rev=595001&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-spring/README.txt (original)
+++ activemq/camel/trunk/examples/camel-example-spring-xquery/README.txt Wed Nov 14 10:17:47 2007
@@ -1,19 +1,22 @@
-Spring Example
-==============
+Spring XQuery Example
+=====================
-This example shows how to work with files and JMS, using Spring to boot up Camel
-and configure the routes.
+This example shows how to
-The example consumes messages from a queue and writes them to the file system.
+ * work with files and JMS
+ * transform messages using XQuery
+ * use Spring XML to configure all routing rules and components
+
+The example consumes messages from a directory, transforms them, then sends them to a queue.
To run the example type
mvn camel:run
-You can see the routing rules by looking at the java code in the src/main/java directory
-and the Spring XML configuration lives in src/main/resources/META-INF/spring
+You can see the routing rules by looking at the the Spring XML configuration
+at src/main/resources/META-INF/spring
For the latest & greatest documentation on how to use this example please see
- http://activemq.apache.org/camel/spring-example.html
+ http://activemq.apache.org/camel/spring-xquery-example.html
If you hit any problems please talk to us on the Camel Forums
http://activemq.apache.org/camel/discussion-forums.html
Copied: activemq/camel/trunk/examples/camel-example-spring-xquery/pom.xml (from r594497, activemq/camel/trunk/examples/camel-example-spring/pom.xml)
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-spring-xquery/pom.xml?p2=activemq/camel/trunk/examples/camel-example-spring-xquery/pom.xml&p1=activemq/camel/trunk/examples/camel-example-spring/pom.xml&r1=594497&r2=595001&rev=595001&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-spring/pom.xml (original)
+++ activemq/camel/trunk/examples/camel-example-spring-xquery/pom.xml Wed Nov 14 10:17:47 2007
@@ -28,21 +28,52 @@
<version>1.3-SNAPSHOT</version>
</parent>
- <artifactId>camel-example-spring</artifactId>
- <name>Camel :: Example :: Spring</name>
- <description>An example showing how to work with Camel and Spring</description>
+ <artifactId>camel-example-spring-xquery</artifactId>
+ <name>Camel :: Example :: Spring :: XQuery</name>
+ <description>An example using Spring XML to transform a message using XQuery</description>
+
+ <properties>
+ <saxon-version>8.7</saxon-version>
+ </properties>
<dependencies>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring</artifactId>
</dependency>
-
+ <!-- not really required - should be transitive -->
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring</artifactId>
+ </dependency>
+
+ <!-- xquery support -->
<dependency>
<groupId>org.apache.camel</groupId>
- <artifactId>camel-jms</artifactId>
+ <artifactId>camel-saxon</artifactId>
+ </dependency>
+ <!-- not really required - should be transitive -->
+ <dependency>
+ <groupId>net.sf.saxon</groupId>
+ <artifactId>saxon</artifactId>
+ <version>${saxon-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.saxon</groupId>
+ <artifactId>saxon-dom</artifactId>
+ <version>${saxon-version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.sf.saxon</groupId>
+ <artifactId>saxon-sql</artifactId>
+ <version>${saxon-version}</version>
</dependency>
+ <!-- jms support -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-jms</artifactId>
+ </dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>apache-activemq</artifactId>
Modified: activemq/camel/trunk/examples/pom.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/examples/pom.xml?rev=595001&r1=595000&r2=595001&view=diff
==============================================================================
--- activemq/camel/trunk/examples/pom.xml (original)
+++ activemq/camel/trunk/examples/pom.xml Wed Nov 14 10:17:47 2007
@@ -60,6 +60,7 @@
<modules>
<module>camel-example-jms-file</module>
<module>camel-example-spring</module>
+ <module>camel-example-spring-xquery</module>
<module>camel-example-etl</module>
<module>camel-example-bam</module>
<module>camel-example-docs</module>