cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gma...@apache.org
Subject svn commit: r1400973 - in /cxf/trunk/distribution/src/main/release/samples/jms_pubsub: README.txt pom.xml src/main/config/ src/main/config/jms_greeter.wsdl src/main/java/demo/jms_greeter/server/GreeterJMSImpl.java wsdl/
Date Mon, 22 Oct 2012 17:53:54 GMT
Author: gmazza
Date: Mon Oct 22 17:53:53 2012
New Revision: 1400973

URL: http://svn.apache.org/viewvc?rev=1400973&view=rev
Log:
Code and README updates for jms_pubsub sample.

Added:
    cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/config/
    cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/config/jms_greeter.wsdl
Removed:
    cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/
Modified:
    cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt
    cxf/trunk/distribution/src/main/release/samples/jms_pubsub/pom.xml
    cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/java/demo/jms_greeter/server/GreeterJMSImpl.java

Modified: cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt?rev=1400973&r1=1400972&r2=1400973&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt (original)
+++ cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt Mon Oct 22 17:53:53
2012
@@ -4,6 +4,11 @@ JMS Transport Demo using Document-Litera
 This sample demonstrates use of the Document-Literal style
 binding over JMS transport using the pub/sub mechanism.
 
+Unlike the jms_queue sample, this web service provides only
+the one-way message exchange pattern (greetMeOneWay), not
+the standard request-response model because you cannot ordinarily
+have a single response for a request that has multiple subscribers. 
+
 Please review the README in the samples directory before
 continuing.
 
@@ -20,6 +25,7 @@ located), using either UNIX or Windows:
 Using either UNIX or Windows:
 
     mvn install (this will build the demo)
+
     In separate command windows/shells:
     mvn -Pjms.broker
     mvn -Pserver
@@ -27,5 +33,3 @@ Using either UNIX or Windows:
 
 To remove the code generated from the WSDL file and the .class
 files, run "mvn clean".
-
-

Modified: cxf/trunk/distribution/src/main/release/samples/jms_pubsub/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/pom.xml?rev=1400973&r1=1400972&r2=1400973&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/jms_pubsub/pom.xml (original)
+++ cxf/trunk/distribution/src/main/release/samples/jms_pubsub/pom.xml Mon Oct 22 17:53:53
2012
@@ -31,7 +31,9 @@
 
     <properties>
         <cxf.version>${project.version}</cxf.version>
+        <wsdl.file>${basedir}/src/main/config/jms_greeter.wsdl</wsdl.file>
     </properties>
+
     <build>
         <plugins>
             <plugin>
@@ -52,7 +54,7 @@
                         <configuration>
                             <wsdlOptions>
                                 <wsdlOption>
-                                    <wsdl>${basedir}/wsdl/jms_greeter.wsdl</wsdl>
+                                    <wsdl>${wsdl.file}</wsdl>
                                 </wsdlOption>
                             </wsdlOptions>
                         </configuration>
@@ -82,7 +84,7 @@
                                 <configuration>
                                     <mainClass>demo.jms_greeter.server.Server</mainClass>
                                     <arguments>
-                                        <argument>${basedir}/wsdl/jms_greeter.wsdl</argument>
+                                        <argument>${wsdl.file}</argument>
                                     </arguments>
                                 </configuration>
                             </execution>
@@ -108,7 +110,7 @@
                                 <configuration>
                                     <mainClass>demo.jms_greeter.client.Client</mainClass>
                                     <arguments>
-                                        <argument>${basedir}/wsdl/jms_greeter.wsdl</argument>
+                                        <argument>${wsdl.file}</argument>
                                     </arguments>
                                 </configuration>
                             </execution>
@@ -149,17 +151,6 @@
         </dependency>
         <dependency>
             <groupId>org.apache.cxf</groupId>
-            <artifactId>cxf-rt-transports-http</artifactId>
-            <version>2.7.1-SNAPSHOT</version>
-        </dependency>
-        <!-- Jetty is needed if you're using the CXFServlet -->
-        <dependency>
-            <groupId>org.apache.cxf</groupId>
-            <artifactId>cxf-rt-transports-http-jetty</artifactId>
-            <version>2.7.1-SNAPSHOT</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.cxf</groupId>
             <artifactId>cxf-rt-transports-jms</artifactId>
             <version>2.7.1-SNAPSHOT</version>
         </dependency>

Added: cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/config/jms_greeter.wsdl
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/config/jms_greeter.wsdl?rev=1400973&view=auto
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/config/jms_greeter.wsdl
(added)
+++ cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/config/jms_greeter.wsdl
Mon Oct 22 17:53:53 2012
@@ -0,0 +1,81 @@
+<?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.
+-->
+<wsdl:definitions name="JMSGreeterService"
+    targetNamespace="http://cxf.apache.org/jms_greeter" 
+    xmlns="http://schemas.xmlsoap.org/wsdl/" 
+    xmlns:jms="http://cxf.apache.org/transports/jms" 
+    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
+    xmlns:tns="http://cxf.apache.org/jms_greeter"
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+    xmlns:x1="http://cxf.apache.org/jms_greeter/types">
+    <wsdl:types>
+        <schema targetNamespace="http://cxf.apache.org/jms_greeter/types" 
+            xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+            <element name="greetMeOneWay">
+                <complexType>
+                    <sequence>
+                        <element name="requestType" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+        </schema>
+    </wsdl:types>
+    
+    <wsdl:message name="greetMeOneWayRequest">
+        <wsdl:part element="x1:greetMeOneWay" name="in"/>
+    </wsdl:message>
+    
+    <wsdl:portType name="JMSGreeterPortType">
+        <wsdl:operation name="greetMeOneWay">
+            <wsdl:input message="tns:greetMeOneWayRequest" name="greetMeOneWayRequest"/>
+        </wsdl:operation>
+
+    </wsdl:portType>
+    
+    <wsdl:binding name="JMSGreeterPortBinding" type="tns:JMSGreeterPortType">
+        <soap:binding style="document" transport="http://cxf.apache.org/transports/jms"/>
+       
+        <wsdl:operation name="greetMeOneWay">
+            <soap:operation style="document"/>
+            <wsdl:input name="greetMeOneWayRequest">
+                <soap:body use="literal"/>
+            </wsdl:input>
+        </wsdl:operation>
+    </wsdl:binding>
+    
+    <wsdl:service name="JMSGreeterService">
+           <wsdl:port binding="tns:JMSGreeterPortBinding" name="GreeterPort">
+               <jms:address
+                   destinationStyle="topic"
+                   jndiConnectionFactoryName="ConnectionFactory" 
+                   jndiDestinationName="dynamicTopics/test.cxf.jmstransport.topic"
+                   >
+                   
+                   <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
+                   <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61616"/>
+                   
+                   
+                </jms:address>
+           </wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>

Modified: cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/java/demo/jms_greeter/server/GreeterJMSImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/java/demo/jms_greeter/server/GreeterJMSImpl.java?rev=1400973&r1=1400972&r2=1400973&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/java/demo/jms_greeter/server/GreeterJMSImpl.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/main/java/demo/jms_greeter/server/GreeterJMSImpl.java
Mon Oct 22 17:53:53 2012
@@ -25,7 +25,7 @@ import org.apache.cxf.jms_greeter.JMSGre
 @javax.jws.WebService(portName = "GreeterPort", serviceName = "JMSGreeterService",
                       targetNamespace = "http://cxf.apache.org/jms_greeter",
                       endpointInterface = "org.apache.cxf.jms_greeter.JMSGreeterPortType",
-                      wsdlLocation = "file:./wsdl/jms_greeter.wsdl")
+                      wsdlLocation = "file:./src/main/config/jms_greeter.wsdl")
 public class GreeterJMSImpl implements JMSGreeterPortType {
 
     private static final Logger LOG = Logger.getLogger(GreeterJMSImpl.class.getPackage().getName());



Mime
View raw message