Author: davsclaus
Date: Thu Oct 23 23:10:17 2008
New Revision: 707556
URL: http://svn.apache.org/viewvc?rev=707556&view=rev
Log:
CAMEL-1021: polished examples
Modified:
activemq/camel/trunk/examples/camel-example-docs/src/main/resources/META-INF/spring/camel-context.xml
activemq/camel/trunk/examples/camel-example-docs/src/main/resources/log4j.properties
activemq/camel/trunk/examples/camel-example-guice-jms/README.txt
activemq/camel/trunk/examples/camel-example-guice-jms/build.xml
activemq/camel/trunk/examples/common_build.xml
Modified:
activemq/camel/trunk/examples/camel-example-docs/src/main/resources/META-INF/spring/camel-context.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-docs/src/main/resources/META-INF/spring/camel-context.xml?rev=707556&r1=707555&r2=707556&view=diff
==============================================================================
---
activemq/camel/trunk/examples/camel-example-docs/src/main/resources/META-INF/spring/camel-context.xml
(original)
+++
activemq/camel/trunk/examples/camel-example-docs/src/main/resources/META-INF/spring/camel-context.xml
Thu Oct 23 23:10:17 2008
@@ -32,6 +32,15 @@
<to uri="seda:other.b"/>
<to uri="seda:other.c"/>
</route>
+
+ <route>
+ <from uri="seda:queue:order"/>
+ <filter>
+ <xpath>/[EMAIL PROTECTED]'Test']</xpath>
+ <to uri="log:testOrder"/>
+ </filter>
+ <to uri="bean:processOrder"/>
+ </route>
</camelContext>
</beans>
Modified:
activemq/camel/trunk/examples/camel-example-docs/src/main/resources/log4j.properties
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-docs/src/main/resources/log4j.properties?rev=707556&r1=707555&r2=707556&view=diff
==============================================================================
---
activemq/camel/trunk/examples/camel-example-docs/src/main/resources/log4j.properties
(original)
+++
activemq/camel/trunk/examples/camel-example-docs/src/main/resources/log4j.properties
Thu Oct 23 23:10:17 2008
@@ -20,16 +20,8 @@
#
log4j.rootLogger=INFO, out
-#log4j.logger.org.apache.activemq=DEBUG
-
# uncomment the next line to debug Camel
-log4j.logger.org.apache.camel=DEBUG
-
-log4j.logger.org.apache.camel.impl.converter=INFO
-log4j.logger.org.apache.camel.util.ResolverUtil=INFO
-
-log4j.logger.org.springframework=WARN
-log4j.logger.org.hibernate=WARN
+#log4j.logger.org.apache.camel=DEBUG
# CONSOLE appender not used by default
log4j.appender.out=org.apache.log4j.ConsoleAppender
Modified: activemq/camel/trunk/examples/camel-example-guice-jms/README.txt
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-guice-jms/README.txt?rev=707556&r1=707555&r2=707556&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-guice-jms/README.txt (original)
+++ activemq/camel/trunk/examples/camel-example-guice-jms/README.txt Thu Oct 23
23:10:17 2008
@@ -1,5 +1,5 @@
-Spring Example
-==============
+Guice Example
+=============
This example shows how to work with files and JMS, using Guice to boot up
Camel and configure the routes. It can be run using Maven or Ant.
@@ -21,7 +21,17 @@
Windows
set ACTIVEMQ_HOME=<path to ActiveMQ install directory>
- c. To Run the example using Ant, type
+ c. You need to have Guiceyfruit installed. It can be downloaded from
+ http://code.google.com/p/guiceyfruit/
+
+ d. Export / Set GUICE_HOME to the top level Guiceyfruit intall
+ directory
+ UNIX
+ export GUICE_HOME=<path to Guiceyfruit install directory>
+ Windows
+ set GUICE_HOME=<path to Guiceyfruit install directory>
+
+ e. To Run the example using Ant, type
ant
or to run the example and generate visualization graphs (refer to
http://activemq.apache.org/camel/visualisation.html), type
Modified: activemq/camel/trunk/examples/camel-example-guice-jms/build.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-guice-jms/build.xml?rev=707556&r1=707555&r2=707556&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-guice-jms/build.xml (original)
+++ activemq/camel/trunk/examples/camel-example-guice-jms/build.xml Thu Oct 23
23:10:17 2008
@@ -17,14 +17,15 @@
limitations under the License.
-->
-<project name="camel-example-spring" default="run" basedir=".">
+<project name="camel-example-guice-jms" default="run" basedir=".">
<import file="../common_build.xml"/>
<fail unless="env.SPRING_HOME" message="You must download Spring Framework
and set your SPRING_HOME to run this demo."/>
<fail unless="env.ACTIVEMQ_HOME" message="You must download ActiveMQ and set
your ACTIVEMQ_HOME to run this demo."/>
+ <fail unless="env.GUICE_HOME" message="You must download Guice and set your
GUICE_HOME to run this demo."/>
- <property name="project.name" value="camel-example-spring"/>
+ <property name="project.name" value="camel-example-guice-jms"/>
<path id="sample.build.classpath">
<fileset dir="${camel.lib}">
@@ -34,6 +35,7 @@
<path refid="spring.classpath"/>
<path refid="camel.spring.classpath"/>
<path refid="activemq.classpath"/>
+ <path refid="guice.classpath"/>
</path>
<target name="run" depends="build" description="Compile and run the sample">
Modified: activemq/camel/trunk/examples/common_build.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/examples/common_build.xml?rev=707556&r1=707555&r2=707556&view=diff
==============================================================================
--- activemq/camel/trunk/examples/common_build.xml (original)
+++ activemq/camel/trunk/examples/common_build.xml Thu Oct 23 23:10:17 2008
@@ -37,6 +37,7 @@
<property name="hsqldb.home" value="${env.HSQLDB_HOME}"/>
<property name="aspectj.home" value="${env.ASPECTJ_HOME}"/>
<property name="spring.home" value="${env.SPRING_HOME}"/>
+ <property name="guice.home" value="${env.GUICE_HOME}"/>
<condition property="build.src">
<available file="${build.src.dir}"/>
@@ -95,6 +96,12 @@
</fileset>
</path>
+ <path id="guice.classpath">
+ <fileset dir="${guice.home}/lib">
+ <include name="guice*.jar"/>
+ </fileset>
+ </path>
+
<path id="log4j.classpath">
<fileset dir="${camel.lib}">
<include name="**/log4j-*.jar"/>