You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by gm...@apache.org on 2012/10/22 19:29:59 UTC
svn commit: r1400966 - in
/cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms:
README.txt pom.xml src/main/java/demo/client/ClientJMS.java
Author: gmazza
Date: Mon Oct 22 17:29:59 2012
New Revision: 1400966
URL: http://svn.apache.org/viewvc?rev=1400966&view=rev
Log:
java_first_jms text and formatting updates
Modified:
cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/README.txt
cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/pom.xml
cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/client/ClientJMS.java
Modified: cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/README.txt
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/README.txt?rev=1400966&r1=1400965&r2=1400966&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/README.txt (original)
+++ cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/README.txt Mon Oct 22 17:29:59 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/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/pom.xml
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/pom.xml?rev=1400966&r1=1400965&r2=1400966&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/pom.xml (original)
+++ cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/pom.xml Mon Oct 22 17:29:59 2012
@@ -17,13 +17,14 @@
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.6.4-SNAPSHOT</version>
<parent>
@@ -32,11 +33,12 @@
<version>2.6.4-SNAPSHOT</version>
</parent>
- <properties>
- <cxf.version>${project.version}</cxf.version>
- <cxf.amq.version>5.3.0</cxf.amq.version>
- <usingJaxws>-jaxws</usingJaxws>
- </properties>
+ <properties>
+ <cxf.version>${project.version}</cxf.version>
+ <cxf.amq.version>5.3.0</cxf.amq.version>
+ <useJaxws>-jaxws</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.6.4-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.6.4-SNAPSHOT</version>
</dependency>
<dependency>
@@ -129,5 +127,5 @@
<artifactId>cxf-rt-transports-jms</artifactId>
<version>2.6.4-SNAPSHOT</version>
</dependency>
- </dependencies>
+ </dependencies>
</project>
Modified: cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/client/ClientJMS.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/client/ClientJMS.java?rev=1400966&r1=1400965&r2=1400966&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/client/ClientJMS.java (original)
+++ cxf/branches/2.6.x-fixes/distribution/src/main/release/samples/java_first_jms/src/main/java/demo/client/ClientJMS.java Mon Oct 22 17:29:59 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;