camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r661231 - in /activemq/camel/trunk/examples/camel-example-spring-jms: README.txt pom.xml src/main/resources/camel-client-remoting.xml src/main/resources/log4j.xml
Date Thu, 29 May 2008 07:12:45 GMT
Author: ningjiang
Date: Thu May 29 00:12:45 2008
New Revision: 661231

URL: http://svn.apache.org/viewvc?rev=661231&view=rev
Log:
CAMEL-471 Added REAME.txt for the spring-jms example

Added:
    activemq/camel/trunk/examples/camel-example-spring-jms/README.txt   (with props)
Modified:
    activemq/camel/trunk/examples/camel-example-spring-jms/pom.xml
    activemq/camel/trunk/examples/camel-example-spring-jms/src/main/resources/camel-client-remoting.xml
    activemq/camel/trunk/examples/camel-example-spring-jms/src/main/resources/log4j.xml

Added: activemq/camel/trunk/examples/camel-example-spring-jms/README.txt
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-spring-jms/README.txt?rev=661231&view=auto
==============================================================================
--- activemq/camel/trunk/examples/camel-example-spring-jms/README.txt (added)
+++ activemq/camel/trunk/examples/camel-example-spring-jms/README.txt Thu May 29 00:12:45
2008
@@ -0,0 +1,28 @@
+Spring & JMS Example
+==================
+
+This example shows how to work with play with the Camel-JMS Component.
+It can be run using Maven or Ant.
+
+The example consumes messages from a queue and invoke the bean with
+with the message that get from the queue.
+
+For the latest & greatest documentation on how to use this example
+please see
+  http://cwiki.apache.org/CAMEL/tutorial-jmsremoting.html
+
+The example should run if you type
+  mvn exec:java -PCamelServer
+  mvn exec:java -PCamelClient
+  mvn exec:java -PCamelClientRemoting
+
+If you hit an problems please let us know on the Camel Forums
+  http://activemq.apache.org/camel/discussion-forums.html
+
+Please help us make Apache Camel better - we appreciate any feedback you may
+have.  Enjoy!
+
+------------------------
+The Camel riders!
+
+

Propchange: activemq/camel/trunk/examples/camel-example-spring-jms/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: activemq/camel/trunk/examples/camel-example-spring-jms/README.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: activemq/camel/trunk/examples/camel-example-spring-jms/pom.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-spring-jms/pom.xml?rev=661231&r1=661230&r2=661231&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-spring-jms/pom.xml (original)
+++ activemq/camel/trunk/examples/camel-example-spring-jms/pom.xml Thu May 29 00:12:45 2008
@@ -7,9 +7,9 @@
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at
-  
+
   http://www.apache.org/licenses/LICENSE-2.0
-  
+
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -24,11 +24,11 @@
     <artifactId>examples</artifactId>
     <version>1.4-SNAPSHOT</version>
   </parent>
-  
+
   <artifactId>camel-example-spring-jms</artifactId>
   <name>Camel :: Example :: Spring :: JMS </name>
   <description>An example using Spring XML to talk to the JMS server</description>
- 
+
  <dependencies>
     <dependency>
       <groupId>log4j</groupId>
@@ -51,7 +51,7 @@
       <groupId>org.apache.camel</groupId>
       <artifactId>camel-spring</artifactId>
     </dependency>
-    
+
     <!-- for testing -->
     <dependency>
       <groupId>junit</groupId>
@@ -59,24 +59,39 @@
       <scope>test</scope>
     </dependency>
   </dependencies>
-  
+
+  <profiles>
+    <profile>
+        <id>CamelServer</id>
+    	<properties>
+            <target.main.class>org.apache.camel.example.server.CamelServer</target.main.class>
+        </properties>
+    </profile>
+    <profile>
+        <id>CamelClient</id>
+    	<properties>
+            <target.main.class>org.apache.camel.example.client.CamelClient</target.main.class>
+        </properties>
+    </profile>
+    <profile>
+        <id>CamelClientRemoting</id>
+    	<properties>
+            <target.main.class>org.apache.camel.example.client.CamelClientRemoting</target.main.class>
+        </properties>
+    </profile>
+  </profiles>
   <build>
     <plugins>
-      <!-- Allows the routes to be run via 'mvn camel:run' -->
+      <!-- Allows the example to be run via 'mvn compile exec:java' -->
       <plugin>
-        <groupId>org.apache.camel</groupId>
-        <artifactId>camel-maven-plugin</artifactId>
-      </plugin>      
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>exec-maven-plugin</artifactId>
+        <configuration>
+          <mainClass>${target.main.class}</mainClass>
+          <includePluginDependencies>false</includePluginDependencies>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 
-  <reporting>
-    <plugins>
-      <!-- Generates nice PNG / SVG diagrams from our routes -->
-      <plugin>
-        <groupId>org.apache.camel</groupId>
-        <artifactId>camel-maven-plugin</artifactId>
-      </plugin>
-    </plugins>
-  </reporting>
 </project>

Modified: activemq/camel/trunk/examples/camel-example-spring-jms/src/main/resources/camel-client-remoting.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-spring-jms/src/main/resources/camel-client-remoting.xml?rev=661231&r1=661230&r2=661231&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-spring-jms/src/main/resources/camel-client-remoting.xml
(original)
+++ activemq/camel/trunk/examples/camel-example-spring-jms/src/main/resources/camel-client-remoting.xml
Thu May 29 00:12:45 2008
@@ -9,13 +9,13 @@
 
 	<camel:camelContext id="camel" />
 	<camel:template id="camelTemplate" />
-	
+
 	<camel:proxy
 		id="multiplierProxy"
-		serviceInterface="org.example.server.Multiplier"
+		serviceInterface="org.apache.camel.example.server.Multiplier"
 		serviceUrl="jms:queue:numbers"
 	/>
-	
+
 	<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
 		<property name="connectionFactory">
 			<bean class="org.apache.activemq.ActiveMQConnectionFactory">

Modified: activemq/camel/trunk/examples/camel-example-spring-jms/src/main/resources/log4j.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-spring-jms/src/main/resources/log4j.xml?rev=661231&r1=661230&r2=661231&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-spring-jms/src/main/resources/log4j.xml (original)
+++ activemq/camel/trunk/examples/camel-example-spring-jms/src/main/resources/log4j.xml Thu
May 29 00:12:45 2008
@@ -20,15 +20,15 @@
 	<!-- ===================================================================== -->
 
 	<!-- LeadX -->
-	<logger name="org.example">
+	<logger name="org.apache.camel.example">
 		<level value="DEBUG"/>
 	</logger>
 
 	<!-- Libraries -->
 	<logger name="org.springframework">
-		<level value="INFO" />
+		<level value="WARN" />
 	</logger>
-	
+
 	<!-- ===================================================================== -->
 	<!--  ROOT				                                  		           -->
 	<!-- ===================================================================== -->



Mime
View raw message