Updated the wsdl_first example to add option to use netty transport

Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/7197b100
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/7197b100
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/7197b100

Branch: refs/heads/master
Commit: 7197b1003a72a0fd8c3b586df236304c3a40416f
Parents: 6d27230
Author: Willem Jiang <[email protected]>
Authored: Thu Apr 17 16:36:07 2014 +0800
Committer: Willem Jiang <[email protected]>
Committed: Thu Apr 17 22:50:46 2014 +0800

----------------------------------------------------------------------
 .../main/release/samples/wsdl_first/README.txt  |  5 ++
 .../src/main/release/samples/wsdl_first/pom.xml | 63 ++++++++++++++++++++
 2 files changed, 68 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/7197b100/distribution/src/main/release/samples/wsdl_first/README.txt
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/wsdl_first/README.txt 
b/distribution/src/main/release/samples/wsdl_first/README.txt
index 5df8a51..4f2ff95 100644
--- a/distribution/src/main/release/samples/wsdl_first/README.txt
+++ b/distribution/src/main/release/samples/wsdl_first/README.txt
@@ -85,6 +85,11 @@ Using either UNIX or Windows:
 There is no special Maven profile for the Spring client and server but you can
 easily set it up yourself.
 
+If you want to run the client and server with netty transport, you can use 
below command to  
+start up the server and client:
+  mvn -Pserver-netty (from one command line window -- only if using embedded 
Netty transport)
+  mvn -Pclient-netty (from one command line window -- only if using embedded 
Netty transport)
+
 If you're using Tomcat (embedded or standalone) for the web service provider:
 ----------------------------------------------------
 1.) Update the soap:address value in the resources/CustomerService.wsdl value,

http://git-wip-us.apache.org/repos/asf/cxf/blob/7197b100/distribution/src/main/release/samples/wsdl_first/pom.xml
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/wsdl_first/pom.xml 
b/distribution/src/main/release/samples/wsdl_first/pom.xml
index e52fc25..bfcdea1 100644
--- a/distribution/src/main/release/samples/wsdl_first/pom.xml
+++ b/distribution/src/main/release/samples/wsdl_first/pom.xml
@@ -134,6 +134,36 @@
             </dependencies>
         </profile>
         <profile>
+            <id>server-netty</id>
+            <build>
+                <defaultGoal>test</defaultGoal>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>exec-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <phase>test</phase>
+                                <goals>
+                                    <goal>java</goal>
+                                </goals>
+                                <configuration>
+                                    
<mainClass>com.example.customerservice.server.CustomerServiceServer</mainClass>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+            <dependencies>
+                <dependency>
+                    <groupId>org.apache.cxf</groupId>
+                    
<artifactId>cxf-rt-transports-http-netty-server</artifactId>
+                    <version>${project.version}</version>
+                </dependency>
+            </dependencies>
+        </profile>
+        <profile>
             <id>client</id>
             <build>
                 <defaultGoal>test</defaultGoal>
@@ -159,6 +189,39 @@
                 </plugins>
             </build>
         </profile>
+        <profile>
+            <id>client-netty</id>
+            <build>
+                <defaultGoal>test</defaultGoal>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>exec-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <phase>test</phase>
+                                <goals>
+                                    <goal>java</goal>
+                                </goals>
+                                <configuration>
+                                    
<mainClass>com.example.customerservice.client.CustomerServiceClient</mainClass>
+                                    <arguments>
+                                        
<argument>src/main/resources/CustomerService.wsdl</argument>
+                                    </arguments>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+            <dependencies>
+                <dependency>
+                    <groupId>org.apache.cxf</groupId>
+                    
<artifactId>cxf-rt-transports-http-netty-client</artifactId>
+                    <version>${project.version}</version>
+                </dependency>
+            </dependencies>
+        </profile>
     </profiles>
     <dependencies>
         <dependency>

Reply via email to