You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ni...@apache.org on 2006/09/21 11:24:36 UTC
svn commit: r448500 - in /incubator/cxf/trunk/distribution/src/main/release:
lib/activemq/3.2/lib/ samples/ samples/jms_pubsub/ samples/jms_pubsub/src/
samples/jms_pubsub/src/demo/ samples/jms_pubsub/src/demo/jms_greeter/
samples/jms_pubsub/src/demo/jm...
Author: ningjiang
Date: Thu Sep 21 02:24:35 2006
New Revision: 448500
URL: http://svn.apache.org/viewvc?view=rev&rev=448500
Log:
[JIRA CXF-88] Add jms_queue and jms_pubsub to distribution sample
Added:
incubator/cxf/trunk/distribution/src/main/release/lib/activemq/3.2/lib/
incubator/cxf/trunk/distribution/src/main/release/lib/activemq/3.2/lib/spring-beans-1.2.5.jar (with props)
incubator/cxf/trunk/distribution/src/main/release/lib/activemq/3.2/lib/spring-core-1.2.5.jar (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/build.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/client/
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/client/Client.java (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/GreeterJMSImpl.java (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/Server.java (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter.wsdl (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter_config.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/build.xml (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/client/
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/client/Client.java (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/GreeterJMSImpl.java (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/Server.java (with props)
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/wsdl/
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/wsdl/jms_greeter.wsdl (with props)
Modified:
incubator/cxf/trunk/distribution/src/main/release/samples/common_build.xml
Added: incubator/cxf/trunk/distribution/src/main/release/lib/activemq/3.2/lib/spring-beans-1.2.5.jar
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/lib/activemq/3.2/lib/spring-beans-1.2.5.jar?view=auto&rev=448500
==============================================================================
Binary file - no diff available.
Propchange: incubator/cxf/trunk/distribution/src/main/release/lib/activemq/3.2/lib/spring-beans-1.2.5.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/cxf/trunk/distribution/src/main/release/lib/activemq/3.2/lib/spring-core-1.2.5.jar
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/lib/activemq/3.2/lib/spring-core-1.2.5.jar?view=auto&rev=448500
==============================================================================
Binary file - no diff available.
Propchange: incubator/cxf/trunk/distribution/src/main/release/lib/activemq/3.2/lib/spring-core-1.2.5.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: incubator/cxf/trunk/distribution/src/main/release/samples/common_build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/common_build.xml?view=diff&rev=448500&r1=448499&r2=448500
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/common_build.xml (original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/common_build.xml Thu Sep 21 02:24:35 2006
@@ -71,6 +71,11 @@
<property name="activemq.home" location="${cxf.home}/lib/activemq/3.2"/>
<property name="cxf.etc.dir" location="${cxf.home}/etc"/>
+ <path id="activeMQ.classpath">
+ <pathelement location="${activemq.home}/lib/spring-core-1.2.5.jar"/>
+ <pathelement location="${activemq.home}/lib/spring-beans-1.2.5.jar"/>
+ <pathelement location="${cxf.home}/lib/cxf.jar"/>
+ </path>
<path id="cxf.classpath">
<pathelement location="${build.classes.dir}"/>
@@ -128,7 +133,7 @@
<java classname="org.activemq.spring.Main" fork="yes" dir="${activemq.home}/bin">
<classpath>
- <path refid="cxf.classpath"/>
+ <path refid="activeMQ.classpath"/>
</classpath>
<arg value="${activemq.home}/conf/activemq.xml"/>
<jvmarg value="-Dactivemq.home=${activemq.home}"/>
Added: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt?view=auto&rev=448500
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt Thu Sep 21 02:24:35 2006
@@ -0,0 +1,127 @@
+JMS Transport Demo using Document-Literal Style.
+==========================================================
+
+This sample demonstrates use of the Document-Literal style
+binding over JMS Transport using pub/sub mechanism.
+
+Please review the README in the samples directory before
+continuing.
+
+
+
+Prerequisite
+------------
+
+If your environment already includes cxf.jar on the
+CLASSPATH, and the JDK and ant bin directories on the PATH
+it is not necessary to run the environment script described in
+the samples directory README. If your environment is not
+properly configured, or if you are planning on using wsdl2java,
+javac, and java to build and run the demos, you must set the
+environment by running the script.
+
+
+
+Building and running the demo using ant
+---------------------------------------
+
+From the samples/jms_pubsub directory, the ant build script
+can be used to build and run the demo.
+
+Using either UNIX or Windows:
+
+ ant build
+ ant jmsbroker.start
+ ant server
+ ant client
+
+
+To remove the code generated from the WSDL file and the .class
+files, run:
+
+ ant clean
+
+
+
+Buildng the demo using wsdl2java and javac
+------------------------------------------
+
+From the samples/jms_pubsub directory, first create the target
+directory build/classes and then generate code from the WSDL file.
+
+For UNIX:
+ mkdir -p build/classes
+
+ wsdl2java -d build/classes -compile ./wsdl/jms_greeter.wsdl
+
+For Windows:
+ mkdir build\classes
+ Must use back slashes.
+
+ wsdl2java -d build\classes -compile .\wsdl\jms_greeter.wsdl
+ May use either forward or back slashes.
+
+Now compile the provided client and server applications with the commands:
+
+For UNIX:
+
+ export CLASSPATH=$CLASSPATH:$CELTIX_HOME/lib/celtix.jar:./build/classes
+ javac -d build/classes src/demo/jms_greeter/client/*.java
+ javac -d build/classes src/demo/jms_greeter/server/*.java
+
+For Windows:
+ set classpath=%classpath%;%CELTIX_HOME%\lib\celtix.jar;.\build\classes
+ javac -d build\classes src\demo\jms_greeter\client\*.java
+ javac -d build\classes src\demo\jms_greeter\server\*.java
+
+Running the demo using java
+---------------------------
+
+From ActiveMQ insallation launch ActiveMQ JMS Broker in seperate window or in
+background using the commandline:
+
+For Unix:
+
+cd <activemq.home.dir>/bin
+activemq ../conf/activemq.xml
+
+For Windows:
+cd <activemq.home.dir>\bin
+activemq.bat ..\conf\activemq.xml
+
+The location of <activemq.home.dir> depends on whether you have installed the
+binary or source release. In the binary release, <activemq.home.dir> is in
+lib/activemq/3.2. In the source release, <activemq.home.dir> is in
+tools/activemq/3.2.
+
+From the samples/jms_pubsub directory run the commands, entered on a
+single command line:
+
+For UNIX (must use forward slashes):
+ java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+ demo.hwJMS.server.Server &
+
+ java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+ demo.hwJMS.client.Client ./wsdl/jms_greeter.wsdl
+
+The server process starts in the background. After running the client,
+use the kill command to terminate the server process.
+
+For Windows (may use either forward or back slashes):
+ start
+ java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+ demo.hwJMS.server.Server
+
+ java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+ demo.hwJMS.client.Client .\wsdl\jms_greeter.wsdl
+
+A new command windows opens for the server process. After running the
+client, terminate the server process by issuing Ctrl-C in its command window.
+
+
+Now you can stop ActiveMQ JMS Broker by issuing Ctrl-C in its command window.
+
+To remove the code generated from the WSDL file and the .class
+files, either delete the build directory and its contents or run:
+
+ ant clean
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/build.xml?view=auto&rev=448500
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/build.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/build.xml Thu Sep 21 02:24:35 2006
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<project name="JMS Greeter pub-sub demo" default="build" basedir=".">
+
+ <import file="../common_build.xml"/>
+
+ <property name="wsdl.dir" location="${basedir}/wsdl"/>
+ <property name="wsdl.file" value="jms_greeter.wsdl"/>
+
+ <target name="client" description="run demo client" depends="build">
+ <property name="param1" value=""/>
+ <property name="param2" value=""/>
+ <property name="param3" value=""/>
+ <cxfrun classname="demo.jms_greeter.client.Client" jvmarg1="-Dceltix.config.file=file:///${basedir}/wsdl/jms_greeter_config.xml" param1="${basedir}/wsdl/jms_greeter.wsdl" param2="${op}" param3="${param1}" param4="${param2}" param5="${param3}"/>
+ </target>
+
+
+ <target name="server" description="run demo server" depends="build">
+ <cxfrun classname="demo.jms_greeter.server.Server" jvmarg1="-Dceltix.config.file=file:///${basedir}/wsdl/jms_greeter_config.xml" param1="${basedir}/wsdl/jms_greeter.wsdl"/>
+ </target>
+
+ <target name="generate.code" unless="codegen.notrequired">
+ <echo level="info" message="Generating code using wsdl2java..."/>
+ <wsdl2java file="${wsdl.file}"/>
+ <touch file="${codegen.timestamp.file}"/>
+ </target>
+</project>
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/build.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/build.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/client/Client.java?view=auto&rev=448500
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/client/Client.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/client/Client.java Thu Sep 21 02:24:35 2006
@@ -0,0 +1,55 @@
+/**
+ * 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 demo.jms_greeter.client;
+
+import java.io.File;
+import javax.xml.namespace.QName;
+import org.apache.cxf.jms_greeter.JMSGreeterPortType;
+import org.apache.cxf.jms_greeter.JMSGreeterService;
+
+public final class Client {
+
+ private static final QName SERVICE_NAME =
+ new QName("http://cxf.apache.org/jms_greeter", "JMSGreeterService");
+ private static final QName PORT_NAME =
+ new QName("http://cxf.apache.org/jms_greeter", "GreeterPort");
+
+ private Client() {
+ }
+
+ public static void main(String[] args) throws Exception {
+
+ if (args.length == 0) {
+ System.out.println("please specify wsdl");
+ System.exit(1);
+ }
+
+ File wsdl = new File(args[0]);
+
+ JMSGreeterService service = new JMSGreeterService(wsdl.toURL(), SERVICE_NAME);
+ JMSGreeterPortType greeter = (JMSGreeterPortType)service.getPort(PORT_NAME, JMSGreeterPortType.class);
+
+ System.out.println("Invoking greetMeOneWay...");
+ greeter.greetMeOneWay(System.getProperty("user.name"));
+ System.out.println("No response from server as method is OneWay");
+ System.out.println();
+
+ System.exit(0);
+ }
+}
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/client/Client.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/client/Client.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/GreeterJMSImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/GreeterJMSImpl.java?view=auto&rev=448500
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/GreeterJMSImpl.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/GreeterJMSImpl.java Thu Sep 21 02:24:35 2006
@@ -0,0 +1,37 @@
+/**
+ * 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 demo.jms_greeter.server;
+
+import java.util.logging.Logger;
+import org.apache.cxf.jms_greeter.JMSGreeterPortType;
+
+@javax.jws.WebService(portName = "GreeterPort", serviceName = "JMSGreeterService",
+ targetNamespace = "http://cxf.apache.org/jms_greeter",
+ endpointInterface = "org.apache.cxf.jms_greeter.JMSGreeterPortType")
+public class GreeterJMSImpl implements JMSGreeterPortType {
+
+ private static final Logger LOG = Logger.getLogger(GreeterJMSImpl.class.getPackage().getName());
+
+ public void greetMeOneWay(String me) {
+ LOG.info("Executing operation greetMeOneWay");
+ System.out.println("Executing operation greetMeOneWay\n");
+ System.out.println("Hello there " + me);
+ }
+}
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/GreeterJMSImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/GreeterJMSImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/Server.java?view=auto&rev=448500
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/Server.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/Server.java Thu Sep 21 02:24:35 2006
@@ -0,0 +1,41 @@
+/**
+ * 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 demo.jms_greeter.server;
+
+import javax.xml.ws.Endpoint;
+
+public class Server {
+
+ protected Server() throws Exception {
+ System.out.println("Starting Server");
+ Object implementor = new GreeterJMSImpl();
+ String address = "http://celtix.objectweb.org/transports/jms";
+ Endpoint.publish(address, implementor);
+ }
+
+ public static void main(String args[]) throws Exception {
+ new Server();
+ System.out.println("Server ready...");
+
+ Thread.sleep(125 * 60 * 1000);
+ System.out.println("Server exiting");
+ System.exit(0);
+ }
+}
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/Server.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/src/demo/jms_greeter/server/Server.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter.wsdl?view=auto&rev=448500
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter.wsdl (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter.wsdl Thu Sep 21 02:24:35 2006
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/transport/jms"/>
+
+ <wsdl:operation name="greetMeOneWay">
+ <soap:operation soapaction="" 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.celtix.jmstransport.topic"
+ >
+
+ <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.activemq.jndi.ActiveMQInitialContextFactory"/>
+ <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61616"/>
+
+
+ </jms:address>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter.wsdl
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter.wsdl
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter_config.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter_config.xml?view=auto&rev=448500
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter_config.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter_config.xml Thu Sep 21 02:24:35 2006
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans SYSTEM
+ "http://celtix.objectweb.org/configuration/spring/celtix-spring-beans.dtd">
+
+<beans
+ xmlns:ct="http://celtix.objectweb.org/configuration/types"
+ xmlns:jms="http://celtix.objectweb.org/transports/jms">
+
+ <bean id="celtix.{http://celtix.objectweb.org/jms_greeter}JMSGreeterService.GreeterPort.jms-client"
+ class="org.objectweb.celtix.bus.transports.jms.jms_client_config.spring.JmsClientConfigBean">
+
+ <property name="jmsClient">
+ <value>
+ <jms:client messageType="text"/>
+ </value>
+ </property>
+
+ </bean>
+
+ <bean id="celtix.{http://celtix.objectweb.org/jms_greeter}JMSGreeterService.jms-server"
+ class="org.objectweb.celtix.bus.transports.jms.jms_server_config.spring.JmsServerConfigBean">
+
+ <property name="jmsServer">
+ <value>
+ <jms:server
+ useMessageIDAsCorrelationID="true"
+ />
+ </value>
+ </property>
+ </bean>
+
+</beans>
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter_config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter_config.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/wsdl/jms_greeter_config.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt?view=auto&rev=448500
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt Thu Sep 21 02:24:35 2006
@@ -0,0 +1,129 @@
+JMS Transport Demo using Document-Literal Style
+==========================================================
+
+This sample demonstrates use of the Document-Literal style
+binding over JMS Transport using queue mechanism.
+
+Please review the README in the samples directory before
+continuing.
+
+
+
+Prerequisite
+------------
+
+If your environment already includes cxf.jar on the
+CLASSPATH, and the JDK and ant bin directories on the PATH
+it is not necessary to run the environment script described in
+the samples directory README. If your environment is not
+properly configured, or if you are planning on using wsdl2java,
+javac, and java to build and run the demos, you must set the
+environment by running the script.
+
+
+
+Building and running the demo using ant
+---------------------------------------
+
+From the samples/jms_queue directory, the ant build script
+can be used to build and run the demo.
+
+Using either UNIX or Windows:
+
+ ant build
+ ant jmsbroker.start
+ ant server
+ ant client
+
+
+To remove the code generated from the WSDL file and the .class
+files, run:
+
+ ant clean
+
+
+
+Buildng the demo using wsdl2java and javac
+------------------------------------------
+
+From the samples/jms_queue directory, first create the target
+directory build/classes and then generate code from the WSDL file.
+
+For UNIX:
+ mkdir -p build/classes
+
+ wsdl2java -d build/classes -compile ./wsdl/jms_greeter.wsdl
+
+For Windows:
+ mkdir build\classes
+ Must use back slashes.
+
+ wsdl2java -d build\classes -compile .\wsdl\jms_greeter.wsdl
+ May use either forward or back slashes.
+
+Now compile the provided client and server applications with the commands:
+
+For UNIX:
+
+ export CLASSPATH=$CLASSPATH:$CELTIX_HOME/lib/celtix.jar:./build/classes
+ javac -d build/classes src/demo/jms_greeter/client/*.java
+ javac -d build/classes src/demo/jms_greeter/server/*.java
+
+For Windows:
+ set classpath=%classpath%;%CELTIX_HOME%\lib\celtix.jar;.\build\classes
+ javac -d build\classes src\demo\jms_greeter\client\*.java
+ javac -d build\classes src\demo\jms_greeter\server\*.java
+
+
+
+Running the demo using java
+---------------------------
+
+From ActiveMQ insallation launch ActiveMQ JMS Broker in seperate window or in
+background using the commandline:
+
+For Unix:
+
+cd <activemq.home.dir>/bin
+activemq ../conf/activemq.xml
+
+For Windows:
+cd <activemq.home.dir>\bin
+activemq.bat ..\conf\activemq.xml
+
+The location of <activemq.home.dir> depends on whether you have installed the
+binary or source release. In the binary release, <activemq.home.dir> is in
+lib/activemq/3.2. In the source release, <activemq.home.dir> is in
+tools/activemq/3.2.
+
+From the samples/jms_queue directory run the commands, entered on a
+single command line:
+
+For UNIX (must use forward slashes):
+ java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+ demo.hwJMS.server.Server &
+
+ java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
+ demo.hwJMS.client.Client ./wsdl/jms_greeter.wsdl
+
+The server process starts in the background. After running the client,
+use the kill command to terminate the server process.
+
+For Windows (may use either forward or back slashes):
+ start
+ java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+ demo.hwJMS.server.Server
+
+ java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
+ demo.hwJMS.client.Client .\wsdl\jms_greeter.wsdl
+
+A new command windows opens for the server process. After running the
+client, terminate the server process by issuing Ctrl-C in its command window.
+
+
+Now you can stop ActiveMQ JMS Broker by issuing Ctrl-C in its command window.
+
+To remove the code generated from the WSDL file and the .class
+files, either delete the build directory and its contents or run:
+
+ ant clean
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/build.xml?view=auto&rev=448500
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/build.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/build.xml Thu Sep 21 02:24:35 2006
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<project name="JMS Queue Greeter" default="build" basedir=".">
+
+ <import file="../common_build.xml"/>
+
+ <property name="wsdl.dir" location="${basedir}/wsdl"/>
+ <property name="wsdl.file" value="jms_greeter.wsdl"/>
+
+ <target name="client" description="run demo client" depends="build">
+ <property name="param1" value=""/>
+ <property name="param2" value=""/>
+ <property name="param3" value=""/>
+ <cxfrun classname="demo.jms_greeter.client.Client" jvmarg1="-Dceltix.config.file=file:///${basedir}/wsdl/jms_greeter_config.xml" param1="${basedir}/wsdl/jms_greeter.wsdl" param2="${op}" param3="${param1}" param4="${param2}" param5="${param3}"/>
+ </target>
+
+
+ <target name="server" description="run demo server" depends="build">
+ <cxfrun classname="demo.jms_greeter.server.Server" jvmarg1="-Dceltix.config.file=file:///${basedir}/wsdl/jms_greeter_config.xml" param1="${basedir}/wsdl/jms_greeter.wsdl"/>
+ </target>
+
+ <target name="generate.code" unless="codegen.notrequired">
+ <echo level="info" message="Generating code using wsdl2java..."/>
+ <wsdl2java file="${wsdl.file}"/>
+ <touch file="${codegen.timestamp.file}"/>
+ </target>
+</project>
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/build.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/build.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/client/Client.java?view=auto&rev=448500
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/client/Client.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/client/Client.java Thu Sep 21 02:24:35 2006
@@ -0,0 +1,122 @@
+/**
+ * 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 demo.jms_greeter.client;
+
+import java.io.File;
+import java.lang.reflect.InvocationHandler;
+import java.lang.reflect.Proxy;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import org.apache.cxf.jms_greeter.JMSGreeterPortType;
+import org.apache.cxf.jms_greeter.JMSGreeterService;
+import org.apache.cxf.transports.jms.context.JMSMessageHeadersType;
+import org.apache.cxf.transports.jms.context.JMSPropertyType;
+
+
+public final class Client {
+
+ private static final QName SERVICE_NAME =
+ new QName("http://cxf.apache.org/jms_greeter", "JMSGreeterService");
+ private static final QName PORT_NAME =
+ new QName("http://cxf.apache.org/jms_greeter", "GreeterPort");
+
+ private Client() {
+ }
+
+ public static void main(String[] args) throws Exception {
+
+ if (args.length == 0) {
+ System.out.println("please specify wsdl");
+ System.exit(1);
+ }
+
+ File wsdl = new File(args[0]);
+
+ JMSGreeterService service = new JMSGreeterService(wsdl.toURL(), SERVICE_NAME);
+ JMSGreeterPortType greeter = (JMSGreeterPortType)service.getPort(PORT_NAME, JMSGreeterPortType.class);
+
+ System.out.println("Invoking sayHi...");
+ System.out.println("server responded with: " + greeter.sayHi());
+ System.out.println();
+
+ System.out.println("Invoking greetMe...");
+ System.out.println("server responded with: " + greeter.greetMe(System.getProperty("user.name")));
+ System.out.println();
+
+ System.out.println("Invoking greetMeOneWay...");
+ greeter.greetMeOneWay(System.getProperty("user.name"));
+ System.out.println("No response from server as method is OneWay");
+ System.out.println();
+
+ // Demonstration of JMS Context usage
+
+ InvocationHandler handler = Proxy.getInvocationHandler(greeter);
+
+ BindingProvider bp = null;
+
+ if (handler instanceof BindingProvider) {
+ bp = (BindingProvider)handler;
+ Map<String, Object> requestContext = bp.getRequestContext();
+ JMSMessageHeadersType requestHeader = new JMSMessageHeadersType();
+ requestHeader.setJMSCorrelationID("JMS_QUEUE_SAMPLE_CORRELATION_ID");
+ requestHeader.setJMSExpiration(3600000L);
+ JMSPropertyType propType = new JMSPropertyType();
+ propType.setName("Test.Prop");
+ propType.setValue("mustReturn");
+ requestHeader.getProperty().add(propType);
+ requestContext.put("org.apache.cxf.jms.client.request.headers", requestHeader);
+ //To override the default receive timeout.
+ requestContext.put("org.apache.cxf.jms.client.timeout", new Long(1000));
+ }
+
+ System.out.println("Invoking sayHi with JMS Context information ...");
+ System.out.println("server responded with: " + greeter.sayHi());
+
+ if (bp != null) {
+ Map<String, Object> responseContext = bp.getResponseContext();
+ JMSMessageHeadersType responseHdr = (JMSMessageHeadersType)responseContext.get(
+ "org.apache.cxf.jms.client.response.headers");
+ if (responseHdr == null) {
+ System.out.println("response Header should not be null");
+ System.out.println();
+ System.exit(1);
+ }
+
+ if ("JMS_QUEUE_SAMPLE_CORRELATION_ID".equals(responseHdr.getJMSCorrelationID())
+ && responseHdr.getProperty() != null) {
+ System.out.println("Received expected contents in response context");
+ } else {
+ System.out.println("Received wrong contents in response context");
+ System.out.println();
+ System.exit(2);
+ }
+ } else {
+ System.out.println("Failed to get the binding provider cannot access context info.");
+ System.exit(3);
+ }
+
+
+ System.out.println();
+
+ System.exit(0);
+ }
+}
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/client/Client.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/client/Client.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/GreeterJMSImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/GreeterJMSImpl.java?view=auto&rev=448500
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/GreeterJMSImpl.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/GreeterJMSImpl.java Thu Sep 21 02:24:35 2006
@@ -0,0 +1,50 @@
+/**
+ * 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 demo.jms_greeter.server;
+
+import java.util.logging.Logger;
+import org.apache.cxf.jms_greeter.JMSGreeterPortType;
+
+@javax.jws.WebService(portName = "GreeterPort",
+ serviceName = "JMSGreeterService",
+ targetNamespace = "http://cxf.apache.org/jms_greeter",
+ endpointInterface = "org.apache.cxf.jms_greeter.JMSGreeterPortType")
+public class GreeterJMSImpl implements JMSGreeterPortType {
+
+ private static final Logger LOG = Logger.getLogger(GreeterJMSImpl.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 String sayHi() {
+ LOG.info("Executing operation sayHi");
+ System.out.println("Executing operation sayHi" + "\n");
+ return "Bonjour";
+ }
+
+ public void greetMeOneWay(String me) {
+ LOG.info("Executing operation greetMeOneWay");
+ System.out.println("Executing operation greetMeOneWay\n");
+ System.out.println("Hello there " + me);
+ }
+}
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/GreeterJMSImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/GreeterJMSImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/Server.java?view=auto&rev=448500
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/Server.java (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/Server.java Thu Sep 21 02:24:35 2006
@@ -0,0 +1,41 @@
+/**
+ * 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 demo.jms_greeter.server;
+
+import javax.xml.ws.Endpoint;
+
+public class Server {
+
+ protected Server() throws Exception {
+ System.out.println("Starting Server");
+ Object implementor = new GreeterJMSImpl();
+ String address = "http://celtix.objectweb.org/transports/jms";
+ Endpoint.publish(address, implementor);
+ }
+
+ public static void main(String args[]) throws Exception {
+ new Server();
+ System.out.println("Server ready...");
+
+ Thread.sleep(125 * 60 * 1000);
+ System.out.println("Server exiting");
+ System.exit(0);
+ }
+}
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/Server.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/src/demo/jms_greeter/server/Server.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/wsdl/jms_greeter.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/wsdl/jms_greeter.wsdl?view=auto&rev=448500
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/wsdl/jms_greeter.wsdl (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/wsdl/jms_greeter.wsdl Thu Sep 21 02:24:35 2006
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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="sayHi">
+ <complexType/>
+ </element>
+ <element name="sayHiResponse">
+ <complexType>
+ <sequence>
+ <element name="responseType" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="greetMe">
+ <complexType>
+ <sequence>
+ <element name="requestType" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="greetMeResponse">
+ <complexType>
+ <sequence>
+ <element name="responseType" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="greetMeOneWay">
+ <complexType>
+ <sequence>
+ <element name="requestType" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ </schema>
+ </wsdl:types>
+
+
+ <wsdl:message name="sayHiRequest">
+ <wsdl:part element="x1:sayHi" name="in"/>
+ </wsdl:message>
+ <wsdl:message name="sayHiResponse">
+ <wsdl:part element="x1:sayHiResponse" name="out"/>
+ </wsdl:message>
+ <wsdl:message name="greetMeRequest">
+ <wsdl:part element="x1:greetMe" name="in"/>
+ </wsdl:message>
+ <wsdl:message name="greetMeResponse">
+ <wsdl:part element="x1:greetMeResponse" name="out"/>
+ </wsdl:message>
+ <wsdl:message name="greetMeOneWayRequest">
+ <wsdl:part element="x1:greetMeOneWay" name="in"/>
+ </wsdl:message>
+
+ <wsdl:portType name="JMSGreeterPortType">
+ <wsdl:operation name="sayHi">
+ <wsdl:input message="tns:sayHiRequest" name="sayHiRequest"/>
+ <wsdl:output message="tns:sayHiResponse" name="sayHiResponse"/>
+ </wsdl:operation>
+
+ <wsdl:operation name="greetMe">
+ <wsdl:input message="tns:greetMeRequest" name="greetMeRequest"/>
+ <wsdl:output message="tns:greetMeResponse" name="greetMeResponse"/>
+ </wsdl:operation>
+
+ <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/transport/jms"/>
+
+ <wsdl:operation name="greetMe">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="greetMeRequest">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="greetMeResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+
+ <wsdl:operation name="sayHi">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="sayHiRequest">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="sayHiResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+
+ <wsdl:operation name="greetMeOneWay">
+ <soap:operation soapaction="" 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="queue"
+ jndiConnectionFactoryName="ConnectionFactory"
+ jndiDestinationName="dynamicQueues/test.celtix.jmstransport.queue">
+
+ <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.activemq.jndi.ActiveMQInitialContextFactory"/>
+ <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61616"/>
+
+ </jms:address>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/wsdl/jms_greeter.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/wsdl/jms_greeter.wsdl
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/wsdl/jms_greeter.wsdl
------------------------------------------------------------------------------
svn:mime-type = text/xml