camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r569359 - in /activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources: pom.xml src/main/java/MyRouteBuilder.java src/main/resources/log4j.properties
Date Fri, 24 Aug 2007 11:59:31 GMT
Author: jstrachan
Date: Fri Aug 24 04:59:31 2007
New Revision: 569359

URL: http://svn.apache.org/viewvc?rev=569359&view=rev
Log:
Improved the maven archtetype; used the current released version of ActiveMQ, tidied up the
logging and added a main() so its easy to run the generated project from your IDE

Modified:
    activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/pom.xml
    activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/src/main/java/MyRouteBuilder.java
    activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/src/main/resources/log4j.properties

Modified: activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/pom.xml?rev=569359&r1=569358&r2=569359&view=diff
==============================================================================
--- activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/pom.xml
(original)
+++ activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/pom.xml
Fri Aug 24 04:59:31 2007
@@ -31,7 +31,7 @@
   <url>http://www.myorganization.org</url>
 
   <properties>
-    <camel-version>1.0-SNAPSHOT</camel-version>
+    <camel-version>1.1.0</camel-version>
   </properties>
 
   <dependencies>

Modified: activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/src/main/java/MyRouteBuilder.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/src/main/java/MyRouteBuilder.java?rev=569359&r1=569358&r2=569359&view=diff
==============================================================================
--- activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/src/main/java/MyRouteBuilder.java
(original)
+++ activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/src/main/java/MyRouteBuilder.java
Fri Aug 24 04:59:31 2007
@@ -19,6 +19,7 @@
 import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.spring.Main;
 
 /**
  * A Camel Router
@@ -27,6 +28,16 @@
  */
 public class MyRouteBuilder extends RouteBuilder {
 
+    /**
+     * A main() so we can easily run these routing rules in our IDE
+     */
+    public static void main(String... args) {
+        Main.main(args);
+    }
+
+    /**
+     * Lets configure the Camel routing rules using Java code...
+     */
     public void configure() {
 
         // TODO create Camel routes here. For example:-

Modified: activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/src/main/resources/log4j.properties?rev=569359&r1=569358&r2=569359&view=diff
==============================================================================
--- activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/src/main/resources/log4j.properties
(original)
+++ activemq/camel/trunk/tooling/archetypes/camel-router/src/main/resources/archetype-resources/src/main/resources/log4j.properties
Fri Aug 24 04:59:31 2007
@@ -20,10 +20,14 @@
 #
 log4j.rootLogger=INFO, out
 
+# uncomment the following line to turn on Camel debugging
+#log4j.logger.org.apache.camel=DEBUG
+
+# uncomment the following line to turn on ActiveMQ debugging
 #log4j.logger.org.apache.activemq=DEBUG
 
-#log4j.logger.org.apache.camel=DEBUG
-log4j.logger.org.apache.camel.impl.converter=INFO
+log4j.logger.org.springframework=WARN
+
 
 # CONSOLE appender not used by default
 log4j.appender.out=org.apache.log4j.ConsoleAppender



Mime
View raw message