camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r670439 - in /activemq/camel/trunk/examples/camel-example-cxf: README.txt pom.xml
Date Mon, 23 Jun 2008 03:35:18 GMT
Author: ningjiang
Date: Sun Jun 22 20:35:18 2008
New Revision: 670439

URL: http://svn.apache.org/viewvc?rev=670439&view=rev
Log:
CAMEL-625 added profiles to start the examples of camel-cxf

Modified:
    activemq/camel/trunk/examples/camel-example-cxf/README.txt
    activemq/camel/trunk/examples/camel-example-cxf/pom.xml

Modified: activemq/camel/trunk/examples/camel-example-cxf/README.txt
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-cxf/README.txt?rev=670439&r1=670438&r2=670439&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-cxf/README.txt (original)
+++ activemq/camel/trunk/examples/camel-example-cxf/README.txt Sun Jun 22 20:35:18 2008
@@ -4,15 +4,27 @@
 This example shows how to work with CXF and Camel. It can be run using
 Maven or Ant.
 
-To run the example type
-  mvn compile exec:java
+You will need to compile this example first:
+  mvn compile
+
+To run the example of routing between different transport type
+  mvn exec:java -PHttpToJMS
+
+To run the example of Camel transport type
+  mvn exec:java -PCamelTransport
+
+To run the example of using WebServiceProvider API
+  mvn exec:java -PWebServiceProvider
+
+
+To
 
 To run the example with Ant
   a. You need to have Apache ActiveMQ and Apache CXF installed. They can be
   downloaded from the following locations
     Apache ActiveMQ
-    http://activemq.apache.org/ 
-    Apache CXF 
+    http://activemq.apache.org/
+    Apache CXF
     http://incubator.apache.org/cxf/
 
   b. Export / Set home directories for the above as follows
@@ -33,7 +45,7 @@
       <groupId>log4j</groupId>
       <artifactId>log4j</artifactId>
     </dependency>
-and log4j.properties is located in src/main/resources 
+and log4j.properties is located in src/main/resources
 
 For the latest & greatest documentation on how to use this example please see
   http://activemq.apache.org/camel/cxf-example.html

Modified: activemq/camel/trunk/examples/camel-example-cxf/pom.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/examples/camel-example-cxf/pom.xml?rev=670439&r1=670438&r2=670439&view=diff
==============================================================================
--- activemq/camel/trunk/examples/camel-example-cxf/pom.xml (original)
+++ activemq/camel/trunk/examples/camel-example-cxf/pom.xml Sun Jun 22 20:35:18 2008
@@ -45,6 +45,11 @@
     </dependency>
 
     <dependency>
+      <groupId>org.apache.camel</groupId>
+      <artifactId>camel-jetty</artifactId>
+    </dependency>
+
+    <dependency>
       <groupId>org.apache.cxf</groupId>
       <artifactId>cxf-rt-bindings-soap</artifactId>
       <version>${cxf-version}</version>
@@ -69,6 +74,30 @@
 
   </dependencies>
 
+  <profiles>
+  	<profile>
+  		<id>HttpToJMS</id>
+  		<properties>
+  			<!-- Starting the camel-cxf example of routing the SOAP over http message to SOAP
over JMS Server -->
+  			<target.main.class>org.apache.camel.example.cxf.CamelCxfExample</target.main.class>
+  		</properties>
+  	</profile>
+  	<profile>
+  		<id>CamelTransport</id>
+  		<properties>
+  			<!-- Starting the camel-cxf example of using Camel transport of CXF -->
+  			<target.main.class>org.apache.camel.example.camel.transport.CamelTransportExample</target.main.class>
+  		</properties>
+  	</profile>
+  	<profile>
+  		<id>WebServiceProvider</id>
+  		<properties>
+  			<!-- Starting the camel-cxf example of how to use the JAXWS WebServiceProvider API
-->
+  			<target.main.class>org.apache.camel.example.cxf.provider.CamelCxfExample</target.main.class>
+  		</properties>
+  	</profile>
+  </profiles>
+
   <build>
     <plugins>
 
@@ -101,7 +130,7 @@
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>exec-maven-plugin</artifactId>
         <configuration>
-          <mainClass>org.apache.camel.example.cxf.CamelCxfExample</mainClass>
+          <mainClass>${target.main.class}</mainClass>
           <includePluginDependencies>false</includePluginDependencies>
            <systemProperties>
             <property>



Mime
View raw message