cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gma...@apache.org
Subject svn commit: r1400963 - in /cxf/trunk/distribution/src/main/release/samples/java_first_jms: README.txt pom.xml src/main/java/demo/client/ClientJMS.java
Date Mon, 22 Oct 2012 17:18:53 GMT
Author: gmazza
Date: Mon Oct 22 17:18:53 2012
New Revision: 1400963

URL: http://svn.apache.org/viewvc?rev=1400963&view=rev
Log:
Sample updates -- formatting, text, etc.

Modified:
    cxf/trunk/distribution/src/main/release/samples/java_first_jms/README.txt
    cxf/trunk/distribution/src/main/release/samples/java_first_jms/pom.xml
    cxf/trunk/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/client/ClientJMS.java

Modified: cxf/trunk/distribution/src/main/release/samples/java_first_jms/README.txt
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/java_first_jms/README.txt?rev=1400963&r1=1400962&r2=1400963&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/java_first_jms/README.txt (original)
+++ cxf/trunk/distribution/src/main/release/samples/java_first_jms/README.txt Mon Oct 22 17:18:53
2012
@@ -1,7 +1,15 @@
 Java-First JMS Sample
 =====================
 
-This sample demonstrates use of SOAP over the JMS protocol.
+This sample demonstrates use of SOAP over the JMS protocol.  It is
+similar to the jms_queue sample except that it is Java-first instead
+of WSDL-first.
+
+Both JAX-WS and CXF-specific methods of creating the client and service
+endpoints are demonstrated (see the ClientJMS and ServerJMS classes
+for details.)  Setting the <useJaxws/> property in the pom.xml
+to "-jaxws" will cause the former to be used, to anything else the
+latter.
 
 Please review the README in the samples directory before
 continuing.

Modified: cxf/trunk/distribution/src/main/release/samples/java_first_jms/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/java_first_jms/pom.xml?rev=1400963&r1=1400962&r2=1400963&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/java_first_jms/pom.xml (original)
+++ cxf/trunk/distribution/src/main/release/samples/java_first_jms/pom.xml Mon Oct 22 17:18:53
2012
@@ -17,26 +17,28 @@
   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">
+<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>
-	<groupId>org.apache.cxf.samples</groupId>
-	<artifactId>java_first_jaxws_jms</artifactId>
-	<name>Java First demo using JAX-WS and JMS</name>
-    <description>Java First demo using JAX-WS and JMS</description>
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.cxf.samples</groupId>
+    <artifactId>java_first_jms</artifactId>
+    <name>Java First demo using JMS</name>
+    <description>Java First demo using JMS</description>
     <version>2.7.1-SNAPSHOT</version>
 
     <parent>
-	  <groupId>org.apache.cxf.samples</groupId>
-	  <artifactId>cxf-samples</artifactId>
-	  <version>2.7.1-SNAPSHOT</version>
-	</parent>
-
-	<properties>
-	  <cxf.version>${project.version}</cxf.version>
-	  <cxf.amq.version>5.3.0</cxf.amq.version>
-      <usingJaxws>-jaxws</usingJaxws>
-	</properties>
+        <groupId>org.apache.cxf.samples</groupId>
+        <artifactId>cxf-samples</artifactId>
+        <version>2.7.1-SNAPSHOT</version>
+    </parent>
+
+    <properties>
+        <cxf.version>${project.version}</cxf.version>
+        <cxf.amq.version>5.3.0</cxf.amq.version>
+        <useJaxws>-jacgsxws</useJaxws>
+    </properties>
+
     <build>
         <plugins>
             <plugin>
@@ -48,6 +50,7 @@
             </plugin>
         </plugins>
     </build>
+
     <profiles>
         <profile>
             <id>jaxws</id>
@@ -69,8 +72,8 @@
                                 <configuration>
                                     <mainClass>demo.server.ServerJMS</mainClass>
                                     <arguments>
-                                    	<argument>-activemqbroker</argument>
-                                    	<argument>${usingJaxws}</argument>
+                                        <argument>-activemqbroker</argument>
+                                        <argument>${useJaxws}</argument>
                                     </arguments>
                                 </configuration>
                             </execution>
@@ -96,7 +99,7 @@
                                 <configuration>
                                     <mainClass>demo.client.ClientJMS</mainClass>
                                     <arguments>
-                                    	<argument>${usingJaxws}</argument>
+                                        <argument>${useJaxws}</argument>
                                     </arguments>
                                 </configuration>
                             </execution>
@@ -108,20 +111,15 @@
     </profiles>
 
 
-	<dependencies>
-		<dependency>
-			<groupId>org.apache.activemq</groupId>
-   			<artifactId>activemq-core</artifactId>
-    		<version>${cxf.amq.version}</version>
-		</dependency>
+    <dependencies>
         <dependency>
-            <groupId>org.apache.cxf</groupId>
-            <artifactId>cxf-rt-frontend-jaxws</artifactId>
-            <version>2.7.1-SNAPSHOT</version>
+            <groupId>org.apache.activemq</groupId>
+            <artifactId>activemq-core</artifactId>
+            <version>${cxf.amq.version}</version>
         </dependency>
         <dependency>
             <groupId>org.apache.cxf</groupId>
-            <artifactId>cxf-rt-transports-http</artifactId>
+            <artifactId>cxf-rt-frontend-jaxws</artifactId>
             <version>2.7.1-SNAPSHOT</version>
         </dependency>
         <dependency>
@@ -129,5 +127,5 @@
             <artifactId>cxf-rt-transports-jms</artifactId>
             <version>2.7.1-SNAPSHOT</version>
         </dependency>
-	</dependencies>
+    </dependencies>
 </project>

Modified: cxf/trunk/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/client/ClientJMS.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/client/ClientJMS.java?rev=1400963&r1=1400962&r2=1400963&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/client/ClientJMS.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/client/ClientJMS.java
Mon Oct 22 17:18:53 2012
@@ -46,9 +46,6 @@ public final class ClientJMS {
         for (String arg : args) {
             if ("-jaxws".equals(arg)) {
                 jaxws = true;
-            } else {
-                System.err.println("Invalid argument " + arg);
-                return;
             }
         }
         HelloWorld client = null;



Mime
View raw message