You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2011/12/09 14:11:20 UTC

svn commit: r1212390 - in /camel/trunk/examples/camel-example-cxf: ./ src/main/java/org/apache/camel/example/camel/transport/ src/main/java/org/apache/camel/example/cxf/ src/main/java/org/apache/camel/example/cxf/httptojms/ src/main/java/org/apache/cam...

Author: davsclaus
Date: Fri Dec  9 13:11:20 2011
New Revision: 1212390

URL: http://svn.apache.org/viewvc?rev=1212390&view=rev
Log:
CAMEL-4701: Polished camel-example-cxf. Thanks to Glen for the patch. I did a svn rm, and svn add for the files that was moved, as reanme with patch does not work well.

Added:
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/CamelCxfExample.java   (with props)
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/Client.java   (with props)
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/GreeterImpl.java   (with props)
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/JmsBroker.java   (with props)
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/Server.java   (with props)
    camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/HttpToJmsCamelContext.xml   (with props)
    camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/cxf/httptojms/
    camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/cxf/httptojms/CxfHttpJmsClientServerTest.java   (with props)
Removed:
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/CamelCxfExample.java
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/Client.java
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/GreeterImpl.java
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/Server.java
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/jms/JmsBroker.java
    camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/cxf/CxfHttpJmsClientServerTest.java
Modified:
    camel/trunk/examples/camel-example-cxf/README.txt
    camel/trunk/examples/camel-example-cxf/pom.xml
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/camel/transport/CamelTransportExample.java
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/camel/transport/Server.java
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/CamelRouterBuilder.java
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/Client.java
    camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/resources/BookStoreImpl.java
    camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/camel/transport/CamelTransportClientServerTest.java
    camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/cxf/jaxrs/JAXRSClientServerTest.java

Modified: camel/trunk/examples/camel-example-cxf/README.txt
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/README.txt?rev=1212390&r1=1212389&r2=1212390&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf/README.txt (original)
+++ camel/trunk/examples/camel-example-cxf/README.txt Fri Dec  9 13:11:20 2011
@@ -20,7 +20,9 @@ To run the example of showing how to cre
 
 To run the example within ServiceMix 4
  First, you need to install the camel-cxf, camel-jetty features into ServiceMix4
- Then install this bundle into ServiceMix, and use those java client to call the services
+ Then install this bundle into ServiceMix, and use the following Java clients 
+ to call the services:
+ 
  mvn exec:java -PHttpToJMS.Client
  mvn exec:java -PCamelTransport.Client
  mvn exec:java -PWebServiceProvider.Client
@@ -38,7 +40,7 @@ Please help us make Apache Camel better 
 have.  Enjoy!
 
 ------------------------
-The Camel riders!
+The Camel Riders!
 
 
 

Modified: camel/trunk/examples/camel-example-cxf/pom.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/pom.xml?rev=1212390&r1=1212389&r2=1212390&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf/pom.xml (original)
+++ camel/trunk/examples/camel-example-cxf/pom.xml Fri Dec  9 13:11:20 2011
@@ -1,314 +1,304 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-	<!--
-		Licensed to the Apache Software Foundation (ASF) under one or more
-		contributor license agreements. See the NOTICE file distributed with
-		this work for additional information regarding copyright ownership.
-		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. See the License for
-		the specific language governing permissions and limitations under the
-		License.
-	-->
-
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-	<modelVersion>4.0.0</modelVersion>
-
-	<parent>
-		<groupId>org.apache.camel</groupId>
-		<artifactId>examples</artifactId>
-		<version>2.9-SNAPSHOT</version>
-		<relativePath>..</relativePath>
-	</parent>
-
-	<artifactId>camel-example-cxf</artifactId>
-	<packaging>bundle</packaging>
-	<name>Camel :: Example :: CXF</name>
-	<description>An example which demonstrates the use of the Camel CXF component
-  </description>
-
-	<properties>
-		<camel.osgi.export.pkg>
-			org.apache.camel.example.*
-     </camel.osgi.export.pkg>
-		<camel.osgi.import.additional>
-			META-INF.cxf,
-			org.apache.activemq.xbean,org.apache.activemq.broker,org.apache.activemq.pool
-     </camel.osgi.import.additional>
-	 <camel.osgi.private.pkg>
-			org.apache.hello_world_soap_http,
-			org.apache.hello_world_soap_http.types
-     </camel.osgi.private.pkg>
-		<!-- to avoid us import bunch of cxf package -->
-		<camel.osgi.dynamic>*</camel.osgi.dynamic>
-	</properties>
-
-	<dependencies>
-		<dependency>
-			<groupId>org.apache.camel</groupId>
-			<artifactId>camel-core</artifactId>
-		</dependency>
-
-		<dependency>
-			<groupId>org.apache.camel</groupId>
-			<artifactId>camel-spring</artifactId>
-		</dependency>
-
-		<dependency>
-			<groupId>org.apache.camel</groupId>
-			<artifactId>camel-cxf</artifactId>
-		</dependency>
-		
-		<dependency>
-			<groupId>org.apache.camel</groupId>
-			<artifactId>camel-cxf-transport</artifactId>
-		</dependency>
-
-		<dependency>
-			<groupId>org.apache.camel</groupId>
-			<artifactId>camel-jetty</artifactId>
-		</dependency>
-
-		<dependency>
-			<groupId>org.apache.cxf</groupId>
-			<artifactId>cxf-rt-transports-http-jetty</artifactId>
-			<version>${cxf-version}</version>
-		</dependency>
-
-		<dependency>
-			<groupId>org.apache.cxf</groupId>
-			<artifactId>cxf-rt-bindings-soap</artifactId>
-			<version>${cxf-version}</version>
-		</dependency>
-
-		<dependency>
-			<groupId>org.apache.cxf</groupId>
-			<artifactId>cxf-rt-transports-jms</artifactId>
-			<version>${cxf-version}</version>
-		</dependency>
-
-		<dependency>
-			<groupId>org.apache.cxf</groupId>
-			<artifactId>cxf-rt-frontend-jaxrs</artifactId>
-			<version>${cxf-version}</version>
-		</dependency>
-
-		<dependency>
-			<groupId>org.apache.activemq</groupId>
-			<artifactId>activemq-core</artifactId>
-		</dependency>
-
-		<dependency>
-			<groupId>org.apache.geronimo.specs</groupId>
-			<artifactId>geronimo-j2ee-connector_1.5_spec</artifactId>
-			<version>2.0.0</version>
-			<scope>provided</scope>
-		</dependency>
-
-		<dependency>
-			<groupId>org.apache.xbean</groupId>
-			<artifactId>xbean-spring</artifactId>
-			<exclusions>
-				<exclusion>
-					<groupId>org.springframework</groupId>
-					<artifactId>spring</artifactId>
-				</exclusion>
-			</exclusions>
-		</dependency>
-
-		<dependency>
-			<groupId>xerces</groupId>
-			<artifactId>xercesImpl</artifactId>
-		</dependency>
+    <!--
+        Licensed to the Apache Software Foundation (ASF) under one or more
+        contributor license agreements. See the NOTICE file distributed with
+        this work for additional information regarding copyright ownership.
+        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. See the License for
+        the specific language governing permissions and limitations under the
+        License.
+    -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.camel</groupId>
+        <artifactId>examples</artifactId>
+        <version>2.9-SNAPSHOT</version>
+        <relativePath>..</relativePath>
+    </parent>
+
+    <artifactId>camel-example-cxf</artifactId>
+    <packaging>bundle</packaging>
+    <name>Camel :: Example :: CXF</name>
+    <description>An example which demonstrates the use of the Camel CXF component</description>
+
+    <properties>
+        <camel.osgi.export.pkg>
+            org.apache.camel.example.*
+        </camel.osgi.export.pkg>
+        <camel.osgi.import.additional>
+            META-INF.cxf,
+            org.apache.activemq.xbean,org.apache.activemq.broker,org.apache.activemq.pool
+        </camel.osgi.import.additional>
+        <camel.osgi.private.pkg>
+            org.apache.hello_world_soap_http,
+            org.apache.hello_world_soap_http.types
+        </camel.osgi.private.pkg>
+        <!-- to avoid importing a bunch of cxf packages -->
+        <camel.osgi.dynamic>*</camel.osgi.dynamic>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-core</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-spring</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-cxf</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-cxf-transport</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-jetty</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-transports-http-jetty</artifactId>
+            <version>${cxf-version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-bindings-soap</artifactId>
+            <version>${cxf-version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-transports-jms</artifactId>
+            <version>${cxf-version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-frontend-jaxrs</artifactId>
+            <version>${cxf-version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.activemq</groupId>
+            <artifactId>activemq-core</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-j2ee-connector_1.5_spec</artifactId>
+            <version>2.0.0</version>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.xbean</groupId>
+            <artifactId>xbean-spring</artifactId>
+            <exclusions>
+                <exclusion>
+                    <groupId>org.springframework</groupId>
+                    <artifactId>spring</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+
+        <dependency>
+            <groupId>xerces</groupId>
+            <artifactId>xercesImpl</artifactId>
+        </dependency>
 
         <!-- logging -->
-		<dependency>
-			<groupId>org.slf4j</groupId>
-			<artifactId>slf4j-log4j12</artifactId>
-		</dependency>
-		<dependency>
-			<groupId>log4j</groupId>
-			<artifactId>log4j</artifactId>
-		</dependency>
-
-		<!-- testing -->
-		<dependency>
-			<groupId>junit</groupId>
-			<artifactId>junit</artifactId>
-			<scope>test</scope>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.camel</groupId>
-			<artifactId>camel-test</artifactId>
-			<scope>test</scope>
-		</dependency>
-
-	</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>
-		<profile>
-			<id>JAXRS</id>
-			<properties>
-				<!-- Starting the camel-cxf example of JAXRS -->
-				<target.main.class>org.apache.camel.example.cxf.jaxrs.CamelRouterBuilder</target.main.class>
-			</properties>
-		</profile>
-		<profile>
-			<id>HttpToJMS.Client</id>
-			<properties>
-				<!--
-					Starting the camel-cxf example client of routing the SOAP over http
-					message to SOAP over JMS Server
-				-->
-				<target.main.class>org.apache.camel.example.cxf.Client</target.main.class>
-			</properties>
-		</profile>
-		<profile>
-			<id>CamelTransport.Client</id>
-			<properties>
-				<!--
-					Starting the camel-cxf example client of using Camel transport of
-					CXF
-				-->
-				<target.main.class>org.apache.camel.example.camel.transport.Client</target.main.class>
-			</properties>
-		</profile>
-		<profile>
-			<id>WebServiceProvider.Client</id>
-			<properties>
-				<!--
-					Starting the camel-cxf example client of how to use the JAXWS
-					WebServiceProvider API
-				-->
-				<target.main.class>org.apache.camel.example.cxf.provider.Client</target.main.class>
-			</properties>
-		</profile>
-		<profile>
-			<id>JAXRS.Client</id>
-			<properties>
-				<!-- Starting the camel-cxf example client of JAXRS -->
-				<target.main.class>org.apache.camel.example.cxf.jaxrs.Client</target.main.class>
-			</properties>
-		</profile>
-	</profiles>
-
-	<build>
-		<plugins>
-			<plugin>
-				<groupId>org.codehaus.mojo</groupId>
-				<artifactId>build-helper-maven-plugin</artifactId>
-				<executions>
-					<execution>
-						<id>attach-artifacts</id>
-						<phase>package</phase>
-						<goals>
-							<goal>attach-artifact</goal>
-						</goals>
-						<configuration>
-							<artifacts>
-								<artifact>
-									<file>target/classes/features.xml</file>
-									<type>xml</type>
-									<classifier>features</classifier>
-								</artifact>
-							</artifacts>
-						</configuration>
-					</execution>
-				</executions>
-			</plugin>
-
-
-			<plugin>
-				<groupId>org.apache.cxf</groupId>
-				<artifactId>cxf-codegen-plugin</artifactId>
-				<version>${cxf-version}</version>
-				<executions>
-					<execution>
-						<id>generate-sources</id>
-						<phase>generate-sources</phase>
-						<configuration>
-							<sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
-							<wsdlOptions>
-								<wsdlOption>
-									<wsdl>${basedir}/src/main/resources/wsdl/hello_world.wsdl</wsdl>
-								</wsdlOption>
-							</wsdlOptions>
-						</configuration>
-						<goals>
-							<goal>wsdl2java</goal>
-						</goals>
-					</execution>
-				</executions>
-			</plugin>
-
-
-			<plugin>
-				<artifactId>maven-surefire-plugin</artifactId>
-				<configuration>
-					<forkMode>once</forkMode>
-					<childDelegation>false</childDelegation>
-					<useFile>true</useFile>
-					<includes>
-						<include>**/*Test.*</include>
-					</includes>
-					<systemProperties>
-						<property>
-							<name>java.util.logging.config.file</name>
-							<value>${basedir}/target/test-classes/logging.properties</value>
-						</property>
-					</systemProperties>
-				</configuration>
-			</plugin>
-
-			<!-- Allows the example to be run via 'mvn compile exec:java' -->
-			<plugin>
-				<groupId>org.codehaus.mojo</groupId>
-				<artifactId>exec-maven-plugin</artifactId>
-				<configuration>
-					<mainClass>${target.main.class}</mainClass>
-					<includePluginDependencies>false</includePluginDependencies>
-					<systemProperties>
-						<property>
-							<key>java.util.logging.config.file</key>
-							<value>logging.properties</value>
-						</property>
-					</systemProperties>
-				</configuration>
-			</plugin>
-		</plugins>
-	</build>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-log4j12</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+        </dependency>
+
+        <!-- testing -->
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+    </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.httptojms.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>
+        <profile>
+            <id>JAXRS</id>
+            <properties>
+                <!-- Starting the camel-cxf example of JAXRS -->
+                <target.main.class>org.apache.camel.example.cxf.jaxrs.CamelRouterBuilder</target.main.class>
+            </properties>
+        </profile>
+        <profile>
+            <id>HttpToJMS.Client</id>
+            <properties>
+                <!-- Starting the camel-cxf example client of routing the SOAP over 
+                    http message to SOAP over JMS Server -->
+                <target.main.class>org.apache.camel.example.cxf.httptojms.Client</target.main.class>
+            </properties>
+        </profile>
+        <profile>
+            <id>CamelTransport.Client</id>
+            <properties>
+                <!-- Starting the camel-cxf example client of using Camel transport 
+                    of CXF -->
+                <target.main.class>org.apache.camel.example.camel.transport.Client</target.main.class>
+            </properties>
+        </profile>
+        <profile>
+            <id>WebServiceProvider.Client</id>
+            <properties>
+                <!-- Starting the camel-cxf example client of how to use the JAXWS 
+                    WebServiceProvider API -->
+                <target.main.class>org.apache.camel.example.cxf.provider.Client</target.main.class>
+            </properties>
+        </profile>
+        <profile>
+            <id>JAXRS.Client</id>
+            <properties>
+                <!-- Starting the camel-cxf example client of JAXRS -->
+                <target.main.class>org.apache.camel.example.cxf.jaxrs.Client</target.main.class>
+            </properties>
+        </profile>
+    </profiles>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>attach-artifacts</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>attach-artifact</goal>
+                        </goals>
+                        <configuration>
+                            <artifacts>
+                                <artifact>
+                                    <file>target/classes/features.xml</file>
+                                    <type>xml</type>
+                                    <classifier>features</classifier>
+                                </artifact>
+                            </artifacts>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+
+            <plugin>
+                <groupId>org.apache.cxf</groupId>
+                <artifactId>cxf-codegen-plugin</artifactId>
+                <version>${cxf-version}</version>
+                <executions>
+                    <execution>
+                        <id>generate-sources</id>
+                        <phase>generate-sources</phase>
+                        <configuration>
+                            <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
+                            <wsdlOptions>
+                                <wsdlOption>
+                                    <wsdl>${basedir}/src/main/resources/wsdl/hello_world.wsdl</wsdl>
+                                </wsdlOption>
+                            </wsdlOptions>
+                        </configuration>
+                        <goals>
+                            <goal>wsdl2java</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
+
+            <plugin>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <forkMode>once</forkMode>
+                    <childDelegation>false</childDelegation>
+                    <useFile>true</useFile>
+                    <includes>
+                        <include>**/*Test.*</include>
+                    </includes>
+                    <systemProperties>
+                        <property>
+                            <name>java.util.logging.config.file</name>
+                            <value>${basedir}/target/test-classes/logging.properties</value>
+                        </property>
+                    </systemProperties>
+                </configuration>
+            </plugin>
+
+            <!-- Allows the example to be run via 'mvn compile exec:java' -->
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>exec-maven-plugin</artifactId>
+                <configuration>
+                    <mainClass>${target.main.class}</mainClass>
+                    <includePluginDependencies>false</includePluginDependencies>
+                    <systemProperties>
+                        <property>
+                            <key>java.util.logging.config.file</key>
+                            <value>logging.properties</value>
+                        </property>
+                    </systemProperties>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 
 </project>

Modified: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/camel/transport/CamelTransportExample.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/camel/transport/CamelTransportExample.java?rev=1212390&r1=1212389&r2=1212390&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/camel/transport/CamelTransportExample.java (original)
+++ camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/camel/transport/CamelTransportExample.java Fri Dec  9 13:11:20 2011
@@ -16,17 +16,19 @@
  */
 package org.apache.camel.example.camel.transport;
 
-
+/**
+ * Main class to run the Camel transport example.
+ */
 public final class CamelTransportExample {
+
     private CamelTransportExample() {
     }
 
     public static void main(String args[]) throws Exception {
-
         Server server = new Server();
 
         try {
-            // setup the camel context for the camel transport
+            // setup the Camel context for the Camel transport
             server.prepare();
             // start the endpoints
             server.start();
@@ -43,7 +45,6 @@ public final class CamelTransportExample
             server.stop();
             System.exit(0);
         }
-
     }
 
 }

Modified: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/camel/transport/Server.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/camel/transport/Server.java?rev=1212390&r1=1212389&r2=1212390&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/camel/transport/Server.java (original)
+++ camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/camel/transport/Server.java Fri Dec  9 13:11:20 2011
@@ -27,7 +27,7 @@ public class Server {
     Endpoint endpointB;
 
     public void prepare() throws Exception {
-        // setup the camel context for the camel transport
+        // setup the Camel context for the Camel transport
         // START SNIPPET: e1
         SpringBusFactory bf = new SpringBusFactory();
         BusFactory.setDefaultBus(null);

Added: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/CamelCxfExample.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/CamelCxfExample.java?rev=1212390&view=auto
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/CamelCxfExample.java (added)
+++ camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/CamelCxfExample.java Fri Dec  9 13:11:20 2011
@@ -0,0 +1,99 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * 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.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.example.cxf.httptojms;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.impl.DefaultCamelContext;
+
+/**
+ * An example for demonstrating how Camel works as a Router.
+ * This example shows how Camel can route a SOAP client's HTTP request
+ * to a SOAP over JMS Service.
+ */
+public final class CamelCxfExample {
+    private static final String ROUTER_ADDRESS = "http://localhost:9001/SoapContext/SoapPort";
+    private static final String SERVICE_ADDRESS = "http://localhost:9003/SoapContext/SoapPort";
+    private static final String SERVICE_CLASS = "serviceClass=org.apache.hello_world_soap_http.Greeter";
+    private static final String WSDL_LOCATION = "wsdlURL=wsdl/hello_world.wsdl";
+    private static final String SERVICE_NAME = "serviceName={http://apache.org/hello_world_soap_http}SOAPService";
+    private static final String SOAP_OVER_HTTP_ROUTER = "portName={http://apache.org/hello_world_soap_http}SoapOverHttpRouter";
+    private static final String SOAP_OVER_JMS = "portName={http://apache.org/hello_world_soap_http}SoapOverJms";
+
+    private static final String ROUTER_ENDPOINT_URI = "cxf://" + ROUTER_ADDRESS + "?" + SERVICE_CLASS + "&"
+                                                   + WSDL_LOCATION + "&" + SERVICE_NAME + "&" + SOAP_OVER_HTTP_ROUTER + "&dataFormat=POJO";
+    private static final String SERVICE_ENDPOINT_URI = "cxf://" + SERVICE_ADDRESS + "?" + SERVICE_CLASS + "&"
+                                                   + WSDL_LOCATION + "&" + SERVICE_NAME + "&" + SOAP_OVER_JMS + "&dataFormat=POJO";
+
+    private CamelCxfExample() {
+    }
+    
+    public static class MyRouteBuilder extends RouteBuilder {
+
+        @Override
+        public void configure() throws Exception {
+            // Here we just pass the exception back, don't need to use errorHandler
+            errorHandler(noErrorHandler());
+            from(ROUTER_ENDPOINT_URI).to(SERVICE_ENDPOINT_URI);
+        }
+        
+    }
+
+    public static void main(String args[]) throws Exception {
+
+        // START SNIPPET: e1
+        CamelContext context = new DefaultCamelContext();
+        // END SNIPPET: e1
+        // Set up the JMS broker and the CXF SOAP over JMS server
+        // START SNIPPET: e2
+        JmsBroker broker = new JmsBroker();
+        Server server = new Server();
+        try {
+            broker.start();
+            server.start();
+            // END SNIPPET: e2
+            // Add some configuration by hand ...
+            // START SNIPPET: e3
+            context.addRoutes(new RouteBuilder() {
+                public void configure() {
+                    // Here we just pass the exception back, don't need to use errorHandler
+                    errorHandler(noErrorHandler());
+                    from(ROUTER_ENDPOINT_URI).to(SERVICE_ENDPOINT_URI);
+                }
+            });
+            // END SNIPPET: e3
+            // Starting the routing context
+            // Using the CXF Client to kick off the invocations
+            // START SNIPPET: e4
+            context.start();
+            Client client = new Client(ROUTER_ADDRESS + "?wsdl");
+            // END SNIPPET: e4
+            // Now everything is set up - let's start the context
+
+            client.invoke();
+            Thread.sleep(1000);
+            context.stop();
+        } catch (Exception ex) {
+            ex.printStackTrace();
+        } finally {
+            server.stop();
+            broker.stop();
+            System.exit(0);
+        }
+
+    }
+}

Propchange: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/CamelCxfExample.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/CamelCxfExample.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/Client.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/Client.java?rev=1212390&view=auto
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/Client.java (added)
+++ camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/Client.java Fri Dec  9 13:11:20 2011
@@ -0,0 +1,95 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * 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.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.example.cxf.httptojms;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.xml.namespace.QName;
+
+import org.apache.hello_world_soap_http.Greeter;
+import org.apache.hello_world_soap_http.PingMeFault;
+import org.apache.hello_world_soap_http.SOAPService;
+import org.apache.hello_world_soap_http.types.FaultDetail;
+
+public final class Client {
+
+    private static final QName SERVICE_NAME
+        = new QName("http://apache.org/hello_world_soap_http", "SOAPService");
+    private String wsdlLocation;
+    private SOAPService soapService;
+    
+
+    public Client(String wsdl) throws MalformedURLException {
+        URL wsdlURL = null;
+        if (wsdl != null) {
+            wsdlLocation = wsdl;
+        }
+
+        File wsdlFile = new File(wsdlLocation);
+        if (wsdlFile.exists()) {
+            wsdlURL = wsdlFile.toURI().toURL();
+        } else {
+            wsdlURL = new URL(wsdlLocation);
+        }
+        soapService = new SOAPService(wsdlURL, SERVICE_NAME);
+    }
+    
+    public Greeter getProxy() {
+        Greeter port = soapService.getSoapOverHttpRouter();
+        return port;
+    }
+
+    public static void main(String args[]) throws Exception {
+        // set the client's service access point
+        Client client = new Client("http://localhost:9001/SoapContext/SoapPort?wsdl");
+        // invoking the services
+        client.invoke();
+    }
+
+    public void invoke() throws Exception {
+        System.out.println("Acquiring router port ...");
+        Greeter port = getProxy();
+        String resp;
+
+        System.out.println("Invoking sayHi...");
+        resp = port.sayHi();
+        System.out.println("Server responded with: " + resp);
+        System.out.println();
+
+        System.out.println("Invoking greetMe...");
+        resp = port.greetMe(System.getProperty("user.name"));
+        System.out.println("Server responded with: " + resp);
+        System.out.println();
+
+        System.out.println("Invoking greetMeOneWay...");
+        port.greetMeOneWay(System.getProperty("user.name"));
+        System.out.println("No response from server as method is OneWay");
+        System.out.println();
+
+        try {
+            System.out.println("Invoking pingMe, expecting exception...");
+            port.pingMe("hello");
+        } catch (PingMeFault ex) {
+            System.out.println("Expected exception: PingMeFault has occurred: " + ex.getMessage());
+            FaultDetail detail = ex.getFaultInfo();
+            System.out.println("FaultDetail major:" + detail.getMajor());
+            System.out.println("FaultDetail minor:" + detail.getMinor());
+        }
+    }
+
+}

Propchange: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/Client.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/Client.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/GreeterImpl.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/GreeterImpl.java?rev=1212390&view=auto
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/GreeterImpl.java (added)
+++ camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/GreeterImpl.java Fri Dec  9 13:11:20 2011
@@ -0,0 +1,64 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * 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.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.example.cxf.httptojms;
+
+import java.util.logging.Logger;
+
+import org.apache.hello_world_soap_http.Greeter;
+import org.apache.hello_world_soap_http.PingMeFault;
+import org.apache.hello_world_soap_http.types.FaultDetail;
+
+@javax.jws.WebService(portName = "SoapOverJms", serviceName = "SOAPService", 
+                      targetNamespace = "http://apache.org/hello_world_soap_http", 
+                      endpointInterface = "org.apache.hello_world_soap_http.Greeter",
+                      wsdlLocation = "wsdl/hello_world.wsdl")
+                  
+public class GreeterImpl implements Greeter {
+
+    private static final Logger LOG = 
+        Logger.getLogger(GreeterImpl.class.getPackage().getName());
+    
+    public String greetMe(String me) {
+        LOG.info("Executing operation greetMe");
+        System.out.println("Executing operation greetMe");
+        System.out.println("Message received: " + me + "\n");
+        return "Hello " + me;
+    }
+    
+    public void greetMeOneWay(String me) {
+        LOG.info("Executing operation greetMeOneWay");
+        System.out.println("Executing operation greetMeOneWay\n");
+        System.out.println("Hello there " + me);
+    }
+
+    public String sayHi() {
+        LOG.info("Executing operation sayHi");
+        System.out.println("Executing operation sayHi\n");
+        return "Bonjour";
+    }
+    
+    public void pingMe(String messageIn) throws PingMeFault {
+        FaultDetail faultDetail = new FaultDetail();
+        faultDetail.setMajor((short)2);
+        faultDetail.setMinor((short)1);
+        LOG.info("Executing operation pingMe, throwing PingMeFault exception, message = " 
+                 + messageIn);
+        System.out.println("Executing operation pingMe, throwing PingMeFault exception\n");
+        throw new PingMeFault("PingMeFault raised by server", faultDetail);
+    }
+
+}

Propchange: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/GreeterImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/GreeterImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/JmsBroker.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/JmsBroker.java?rev=1212390&view=auto
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/JmsBroker.java (added)
+++ camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/JmsBroker.java Fri Dec  9 13:11:20 2011
@@ -0,0 +1,101 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * 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.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.example.cxf.httptojms;
+
+import java.io.File;
+
+import org.apache.activemq.broker.BrokerService;
+import org.apache.activemq.store.memory.MemoryPersistenceAdapter;
+
+public final class JmsBroker {
+    JMSEmbeddedBroker jmsBrokerThread;
+    String jmsBrokerUrl = "vm://localhost";
+    String activeMQStorageDir;
+
+    public JmsBroker() {
+    }
+
+    public JmsBroker(String url) {
+        jmsBrokerUrl = url;
+    }
+    
+    public void start() throws Exception {
+        jmsBrokerThread = new JMSEmbeddedBroker(jmsBrokerUrl);
+        jmsBrokerThread.startBroker();
+    }
+    
+    public void stop() throws Exception {
+        synchronized (this) {
+            jmsBrokerThread.shutdownBroker = true;
+        }
+        if (jmsBrokerThread != null) {
+            jmsBrokerThread.join();
+        }
+        
+        jmsBrokerThread = null;
+    }
+    
+    class JMSEmbeddedBroker extends Thread {
+        boolean shutdownBroker;
+        final String brokerUrl;
+        Exception exception;
+
+        public JMSEmbeddedBroker(String url) {
+            brokerUrl = url;
+        }
+        
+        public void startBroker() throws Exception {
+            synchronized (this) {
+                super.start();
+                try {
+                    wait();
+                    if (exception != null) {
+                        throw exception;
+                    }
+                } catch (InterruptedException ex) {
+                    ex.printStackTrace();
+                }
+            }
+        }
+        
+        public void run() {
+            try {  
+                BrokerService broker = new BrokerService();
+                synchronized (this) {                                     
+                    broker.setPersistenceAdapter(new MemoryPersistenceAdapter());                    
+                    broker.setTmpDataDirectory(new File("./target"));
+                    broker.addConnector(brokerUrl);
+                    broker.start();
+                    Thread.sleep(200);
+                    notifyAll();
+                }
+                synchronized (this) {
+                    while (!shutdownBroker) {
+                        wait(1000);
+                    }
+                }                
+                broker.stop();              
+                broker = null;                
+            } catch (Exception e) {
+                exception = e;
+                e.printStackTrace();
+            }
+        }
+    }
+
+}
+

Propchange: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/JmsBroker.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/JmsBroker.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/Server.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/Server.java?rev=1212390&view=auto
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/Server.java (added)
+++ camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/Server.java Fri Dec  9 13:11:20 2011
@@ -0,0 +1,47 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * 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.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.example.cxf.httptojms;
+
+import javax.xml.ws.Endpoint;
+
+public class Server {
+    Endpoint endpoint;
+
+    public void start() throws Exception {
+        System.out.println("Starting Server");
+        Object implementor = new GreeterImpl();
+        String address = "http://cxf.apache.org/transports/jms";
+        endpoint = Endpoint.publish(address, implementor);
+    }
+
+    public void stop() {
+        if (endpoint != null) {
+            endpoint.stop();
+        }
+    }
+
+    public static void main(String args[]) throws Exception {
+        Server server = new Server();
+        System.out.println("Server ready...");
+        server.start();
+        Thread.sleep(5 * 60 * 1000);
+        System.out.println("Server exiting");
+        server.stop();
+        System.exit(0);
+    }
+
+}

Propchange: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/Server.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/httptojms/Server.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/CamelRouterBuilder.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/CamelRouterBuilder.java?rev=1212390&r1=1212389&r2=1212390&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/CamelRouterBuilder.java (original)
+++ camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/CamelRouterBuilder.java Fri Dec  9 13:11:20 2011
@@ -43,36 +43,37 @@ public class CamelRouterBuilder extends 
         context.start();
         context.addRoutes(new CamelRouterBuilder());
         Thread.sleep(1000);
+
         // JAXWSClient invocation
         JAXWSClient jaxwsClient = new JAXWSClient();
         BookStore bookStore = jaxwsClient.getBookStore();
         
-        bookStore.addBook(new Book("Camel User Guide", 234L));
+        bookStore.addBook(new Book("Camel User Guide", 123L));
         Book book = bookStore.getBook(123L);
         System.out.println("Get the book with id 123. " + book);       
-      
+
         try {
             book = bookStore.getBook(124L);
             System.out.println("Get the book with id 124. " + book); 
         } catch (Exception exception) {
-            System.out.println("Get the exception " + exception);
+            System.out.println("Expected exception received: " + exception);
         }
-        
+
         // JAXRSClient invocation
         JAXRSClient jaxrsClient = new JAXRSClient();
         bookStore =  jaxrsClient.getBookStore();
         
-        bookStore.addBook(new Book("Camel User Guide", 124L));
+        bookStore.addBook(new Book("Karaf User Guide", 124L));
         book = bookStore.getBook(124L);
         System.out.println("Get the book with id 124. " + book);
-        
+
         try {
             book = bookStore.getBook(126L);
             System.out.println("Get the book with id 126. " + book); 
         } catch (Exception exception) {
-            System.out.println("Get the exception " + exception);
+            System.out.println("Expected exception received: " + exception);
         }
-        
+
         Thread.sleep(1000);
         context.stop();
         System.exit(0);

Modified: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/Client.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/Client.java?rev=1212390&r1=1212389&r2=1212390&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/Client.java (original)
+++ camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/Client.java Fri Dec  9 13:11:20 2011
@@ -27,7 +27,7 @@ public class Client {
         JAXWSClient jaxwsClient = new JAXWSClient();
         BookStore bookStore = jaxwsClient.getBookStore();
         
-        bookStore.addBook(new Book("Camel User Guide", 234L));
+        bookStore.addBook(new Book("Camel User Guide", 123L));
         Book book = bookStore.getBook(123L);
         System.out.println("Get the book with id 123. " + book);       
       
@@ -35,14 +35,14 @@ public class Client {
             book = bookStore.getBook(124L);
             System.out.println("Get the book with id 124. " + book); 
         } catch (Exception exception) {
-            System.out.println("Get the exception " + exception);
+            System.out.println("Expected exception received: " + exception);
         }
         
         // JAXRSClient invocation
         JAXRSClient jaxrsClient = new JAXRSClient();
         bookStore =  jaxrsClient.getBookStore();
         
-        bookStore.addBook(new Book("Camel User Guide", 124L));
+        bookStore.addBook(new Book("Karaf User Guide", 124L));
         book = bookStore.getBook(124L);
         System.out.println("Get the book with id 124. " + book);
         
@@ -50,7 +50,7 @@ public class Client {
             book = bookStore.getBook(126L);
             System.out.println("Get the book with id 126. " + book); 
         } catch (Exception exception) {
-            System.out.println("Get the exception " + exception);
+            System.out.println("Expected exception received: " + exception);
         }
     }
     

Modified: camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/resources/BookStoreImpl.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/resources/BookStoreImpl.java?rev=1212390&r1=1212389&r2=1212390&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/resources/BookStoreImpl.java (original)
+++ camel/trunk/examples/camel-example-cxf/src/main/java/org/apache/camel/example/cxf/jaxrs/resources/BookStoreImpl.java Fri Dec  9 13:11:20 2011
@@ -59,8 +59,8 @@ public class BookStoreImpl implements Bo
     
     private void init() {
         Book book = new Book();
-        book.setId(123);
-        book.setName("CXF in Action");
+        book.setId(101);
+        book.setName("CXF User Guide");
         books.put(book.getId(), book);
     }    
 

Added: camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/HttpToJmsCamelContext.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/HttpToJmsCamelContext.xml?rev=1212390&view=auto
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/HttpToJmsCamelContext.xml (added)
+++ camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/HttpToJmsCamelContext.xml Fri Dec  9 13:11:20 2011
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    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.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<!-- This file not used for standalone deployment, only OSGi and the JUnit test cases -->
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:broker="http://activemq.apache.org/schema/core"
+       xmlns:camel="http://camel.apache.org/schema/spring"
+       xmlns:jaxws="http://cxf.apache.org/jaxws"
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
+       http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.5.0.xsd
+       http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
+
+  <import resource="classpath:META-INF/cxf/cxf.xml"/>
+
+  <broker:broker id="broker" useJmx="false" persistent="false" dataDirectory="target/activemq">
+    <broker:transportConnectors>
+      <broker:transportConnector name="openwire" uri="vm://localhost"/>
+    </broker:transportConnectors>
+  </broker:broker>
+
+  <camel:camelContext id="myCamelContext">
+    <camel:routeBuilder ref="myRouteBuilder"/>
+  </camel:camelContext>
+
+  <bean id="myRouteBuilder" class="org.apache.camel.example.cxf.httptojms.CamelCxfExample$MyRouteBuilder"/>
+
+  <jaxws:endpoint id="serviceEndpoint"
+                  implementor="org.apache.camel.example.cxf.httptojms.GreeterImpl"
+                  address="jms://"/>
+
+
+</beans>

Propchange: camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/HttpToJmsCamelContext.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/HttpToJmsCamelContext.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: camel/trunk/examples/camel-example-cxf/src/main/resources/META-INF/spring/HttpToJmsCamelContext.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/camel/transport/CamelTransportClientServerTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/camel/transport/CamelTransportClientServerTest.java?rev=1212390&r1=1212389&r2=1212390&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/camel/transport/CamelTransportClientServerTest.java (original)
+++ camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/camel/transport/CamelTransportClientServerTest.java Fri Dec  9 13:11:20 2011
@@ -70,9 +70,9 @@ public class CamelTransportClientServerT
 
         try {
             port.pingMe("hello");
-            fail("expects the exception here");
+            fail("exception expected but none thrown");
         } catch (PingMeFault ex) {
-            assertEquals("Get a wrong exception message", "PingMeFault raised by server EndpointB", ex.getMessage());
+            assertEquals("Wrong exception message received", "PingMeFault raised by server EndpointB", ex.getMessage());
             FaultDetail detail = ex.getFaultInfo();
             assertEquals("Wrong FaultDetail major:", 2, detail.getMajor());
             assertEquals("Wrong FaultDetail minor:", 1, detail.getMinor());

Added: camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/cxf/httptojms/CxfHttpJmsClientServerTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/cxf/httptojms/CxfHttpJmsClientServerTest.java?rev=1212390&view=auto
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/cxf/httptojms/CxfHttpJmsClientServerTest.java (added)
+++ camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/cxf/httptojms/CxfHttpJmsClientServerTest.java Fri Dec  9 13:11:20 2011
@@ -0,0 +1,61 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * 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.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.example.cxf.httptojms;
+
+import java.net.MalformedURLException;
+
+import org.apache.camel.test.junit4.CamelSpringTestSupport;
+import org.apache.hello_world_soap_http.Greeter;
+import org.apache.hello_world_soap_http.PingMeFault;
+import org.apache.hello_world_soap_http.types.FaultDetail;
+import org.junit.Test;
+import org.springframework.context.support.AbstractXmlApplicationContext;
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+public class CxfHttpJmsClientServerTest extends CamelSpringTestSupport {
+    private static final String ROUTER_ADDRESS = "http://localhost:9001/SoapContext/SoapPort";
+
+    @Test
+    public void testClientInvocation() throws MalformedURLException {
+        Client client = new Client(ROUTER_ADDRESS + "?wsdl");
+        Greeter proxy = client.getProxy();
+
+        String resp;
+        resp = proxy.sayHi();
+        assertEquals("Get a wrong response", "Bonjour", resp);
+
+        resp = proxy.greetMe("Willem");
+        assertEquals("Get a wrong response", "Hello Willem", resp);
+
+        proxy.greetMeOneWay(System.getProperty("user.name"));
+
+        try {
+            proxy.pingMe("hello");
+            fail("exception expected but none thrown");
+        } catch (PingMeFault ex) {
+            FaultDetail detail = ex.getFaultInfo();
+            assertEquals("Wrong FaultDetail major:", 2, detail.getMajor());
+            assertEquals("Wrong FaultDetail minor:", 1, detail.getMinor());
+        }
+    }
+
+    @Override
+    protected AbstractXmlApplicationContext createApplicationContext() {
+        return new ClassPathXmlApplicationContext(new String[] {"/META-INF/spring/HttpToJmsCamelContext.xml"});
+    }
+
+}

Propchange: camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/cxf/httptojms/CxfHttpJmsClientServerTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/cxf/httptojms/CxfHttpJmsClientServerTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/cxf/jaxrs/JAXRSClientServerTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/cxf/jaxrs/JAXRSClientServerTest.java?rev=1212390&r1=1212389&r2=1212390&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/cxf/jaxrs/JAXRSClientServerTest.java (original)
+++ camel/trunk/examples/camel-example-cxf/src/test/java/org/apache/camel/example/cxf/jaxrs/JAXRSClientServerTest.java Fri Dec  9 13:11:20 2011
@@ -32,7 +32,7 @@ public class JAXRSClientServerTest exten
         JAXWSClient jaxwsClient = new JAXWSClient();
         BookStore bookStore = jaxwsClient.getBookStore();
         
-        bookStore.addBook(new Book("Camel User Guide", 234L));
+        bookStore.addBook(new Book("Camel User Guide", 123L));
         Book book = bookStore.getBook(123L);
         assertNotNull("We should find the book here", book);