Author: jim.ma
Date: 2010-05-05 00:31:58 -0400 (Wed, 05 May 2010)
New Revision: 12161
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/EndpointsDDFromJavaHttpJMSTransportTestCase.java
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/EndpointsDDFromWsdlJMSTransportTestCase.java
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/OrganizationEndpoint.java
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/OrganizationHttpEndpoint.java
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/hornetq-jms.xml
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jboss-service.xml
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jboss-web.xml
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jbossws-cxf.xml
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jbossws-endpoints.xml
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/web.xml
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/META-INF/
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/META-INF/hornetq-jms.xml
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/META-INF/jboss-service.xml
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/META-INF/jbossws-endpoints.xml
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/wsdl/
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/wsdl/jaxws-samples.wsdl
Modified:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml
Log:
[JBWS-2791]:Added more test case to demonstrate jms endpoints from wsdl and from java
Modified:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml 2010-05-05
03:45:05 UTC (rev 12160)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/scripts/cxf-samples-jaxws.xml 2010-05-05
04:31:58 UTC (rev 12161)
@@ -17,6 +17,40 @@
<mkdir dir="${tests.output.dir}/test-libs"/>
<!--jms transport endpoints deployment descriptor sample-->
+
+ <!-- jms transport from wsdl for as5 -->
+ <jar
jarfile="${tests.output.dir}/test-libs/jaxws-samples-endpointsdd-fromwsdl-as5.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/Organization.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/OrganizationEndpoint.class"/>
+ </fileset>
+
+ <fileset
dir="${tests.output.dir}/test-resources/jaxws/samples/endpointsdd/fromwsdl">
+ <include name="wsdl/*"/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/samples/endpointsdd/fromwsdl/META-INF">
+ <include name="jboss-service.xml"/>
+ <include name="jbossws-endpoints.xml"/>
+ </metainf>
+ </jar>
+
+ <!-- jms transport from wsdl for as6 -->
+ <jar
jarfile="${tests.output.dir}/test-libs/jaxws-samples-endpointsdd-fromwsdl-as6.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include
name="org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/Organization.class"/>
+ <include
name="org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/OrganizationEndpoint.class"/>
+ </fileset>
+
+ <fileset
dir="${tests.output.dir}/test-resources/jaxws/samples/endpointsdd/fromwsdl">
+ <include name="wsdl/*"/>
+ </fileset>
+ <metainf
dir="${tests.output.dir}/test-resources/jaxws/samples/endpointsdd/fromwsdl/META-INF">
+ <include name="hornetq-jms.xml"/>
+ <include name="jbossws-endpoints.xml"/>
+ </metainf>
+ </jar>
+
+ <!-- jms transport from java for as5 -->
<jar
jarfile="${tests.output.dir}/test-libs/jaxws-samples-endpointsdd-as5.jar">
<fileset dir="${tests.output.dir}/test-classes">
<include
name="org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/Organization.class"/>
@@ -27,6 +61,8 @@
<include name="jbossws-endpoints.xml"/>
</metainf>
</jar>
+
+ <!-- jms transport from java for as6 -->
<jar
jarfile="${tests.output.dir}/test-libs/jaxws-samples-endpointsdd-as6.jar">
<fileset dir="${tests.output.dir}/test-classes">
<include
name="org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/Organization.class"/>
@@ -38,7 +74,7 @@
</metainf>
</jar>
-
+ <!-- jms transport deployed with http endpoint for as5 -->
<war
warfile="${tests.output.dir}/test-libs/jaxws-samples-jms-as5.war"
webxml="${tests.output.dir}/test-resources/jaxws/samples/endpointsdd/WEB-INF/web.xml">
@@ -54,7 +90,7 @@
</webinf>
</war>
-
+ <!-- jms transport deployed with http endpoint for as6 -->
<war
warfile="${tests.output.dir}/test-libs/jaxws-samples-jms-as6.war"
webxml="${tests.output.dir}/test-resources/jaxws/samples/endpointsdd/WEB-INF/web.xml">
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/EndpointsDDFromJavaHttpJMSTransportTestCase.java
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/EndpointsDDFromJavaHttpJMSTransportTestCase.java
(rev 0)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/EndpointsDDFromJavaHttpJMSTransportTestCase.java 2010-05-05
04:31:58 UTC (rev 12161)
@@ -0,0 +1,62 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.endpointsdd.jmstransport;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Test for jms and http transport endpoints deployed in the same war file
+ * @author <a href="ema(a)redhat.com">Jim Ma</a>
+ */
+public class EndpointsDDFromJavaHttpJMSTransportTestCase extends
EndpointsDDFromJavaJMSTransportTestCase
+{
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(EndpointsDDFromJavaHttpJMSTransportTestCase.class,
isHornetQAvailable() ? "jaxws-samples-jms-as6.war" :
"jaxws-samples-jms-as5.war");
+ }
+
+
+ public void testHTTPEndpointPort() throws Exception
+ {
+ URL wsdlURL = new URL("http://" + getServerHost() +
":8080/jaxws-samples-jms?wsdl");
+
+ QName serviceName = new QName("http://org.jboss.ws/samples/jmstransport",
"OrganizationService");
+ QName portName = new QName("http://org.jboss.ws/samples/jmstransport",
"HttpEndpointPort");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ Organization port = service.getPort(portName, Organization.class);
+
+ String res = port.getContactInfo("mafia");
+ assertEquals("The 'mafia' boss is currently out of office, please call
again.", res);
+ }
+
+
+
+}
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/EndpointsDDFromWsdlJMSTransportTestCase.java
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/EndpointsDDFromWsdlJMSTransportTestCase.java
(rev 0)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/EndpointsDDFromWsdlJMSTransportTestCase.java 2010-05-05
04:31:58 UTC (rev 12161)
@@ -0,0 +1,144 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.endpointsdd.jmstransport;
+
+import javax.jms.Message;
+import javax.jms.MessageListener;
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueReceiver;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.jms.Session;
+import javax.jms.TextMessage;
+import javax.management.ObjectName;
+import javax.naming.InitialContext;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.common.DOMUtils;
+import org.jboss.wsf.common.ObjectNameFactory;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestHelper;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+public class EndpointsDDFromWsdlJMSTransportTestCase extends JBossWSTest
+{
+ private static boolean waitForResponse;
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(EndpointsDDFromWsdlJMSTransportTestCase.class,
isHornetQAvailable() ? "jaxws-samples-endpointsdd-fromwsdl-as6.jar" :
"jaxws-samples-endpointsdd-fromwsdl-as5.jar");
+ }
+
+ public static boolean isHornetQAvailable()
+ {
+ try
+ {
+ ObjectName oname =
ObjectNameFactory.create("jboss.system:type=Server");
+ String jbossVersion = (String)getServer().getAttribute(oname,
"VersionNumber");
+ return JBossWSTestHelper.isTargetJBoss6() &&
!jbossVersion.contains("M2");
+ }
+ catch (Exception e)
+ {
+ return false;
+ }
+ }
+
+ public void testMessagingClient() throws Exception
+ {
+ String reqMessage =
+ "<env:Envelope
xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" +
+ "<env:Body>" +
+ "<ns1:getContactInfo
xmlns:ns1='http://org.jboss.ws/samples/jmstransport'>" +
+ "<arg0>mafia</arg0>" +
+ "</ns1:getContactInfo>" +
+ "</env:Body>" +
+ "</env:Envelope>";
+
+ String resMessage =
+ "<soap:Envelope
xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>" +
+ "<soap:Body>" +
+ "<ns1:getContactInfoResponse
xmlns:ns1='http://org.jboss.ws/samples/jmstransport'>" +
+ "<return>The 'mafia' boss is currently out of
office, please call again.</return>" +
+ "</ns1:getContactInfoResponse>" +
+ "</soap:Body>" +
+ "</soap:Envelope>";
+
+ InitialContext context = new InitialContext();
+ QueueConnectionFactory connectionFactory =
(QueueConnectionFactory)context.lookup("ConnectionFactory");
+ Queue reqQueue = (Queue)context.lookup("queue/RequestQueue");
+ Queue resQueue = (Queue)context.lookup("queue/ResponseQueue");
+
+ QueueConnection con = connectionFactory.createQueueConnection();
+ QueueSession session = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
+ QueueReceiver receiver = session.createReceiver(resQueue);
+ ResponseListener responseListener = new ResponseListener();
+ receiver.setMessageListener(responseListener);
+ con.start();
+
+ TextMessage message = session.createTextMessage(reqMessage);
+ message.setJMSReplyTo(resQueue);
+
+ waitForResponse = true;
+
+ QueueSender sender = session.createSender(reqQueue);
+ sender.send(message);
+ sender.close();
+
+ int timeout = 5;
+ while (waitForResponse && timeout > 0)
+ {
+ Thread.sleep(1000);
+ timeout = timeout -1;
+ }
+
+ assertNotNull("Expected response message", responseListener.resMessage);
+ assertEquals(DOMUtils.parse(resMessage),
DOMUtils.parse(responseListener.resMessage));
+
+ sender.close();
+ receiver.close();
+ con.stop();
+ session.close();
+ con.close();
+ }
+
+ public static class ResponseListener implements MessageListener
+ {
+ public String resMessage;
+
+ public void onMessage(Message msg)
+ {
+ TextMessage textMessage = (TextMessage)msg;
+ try
+ {
+ resMessage = textMessage.getText();
+ waitForResponse = false;
+ }
+ catch (Throwable t)
+ {
+ t.printStackTrace();
+ }
+ }
+ }
+}
\ No newline at end of file
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/OrganizationEndpoint.java
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/OrganizationEndpoint.java
(rev 0)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/OrganizationEndpoint.java 2010-05-05
04:31:58 UTC (rev 12161)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.endpointsdd.jmstransport;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@WebService (serviceName="OrganizationService",
portName="HttpEndpointPort", wsdlLocation="./wsdl/jaxws-samples.wsdl",
targetNamespace = "http://org.jboss.ws/samples/jmstransport",
endpointInterface="org.jboss.test.ws.jaxws.samples.endpointsdd.jmstransport.Organization")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+
+public class OrganizationEndpoint implements Organization
+{
+ @WebMethod
+ public String getContactInfo(String organization)
+ {
+ return "The '" + organization + "' boss is currently out of
office, please call again.";
+ }
+}
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/OrganizationHttpEndpoint.java
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/OrganizationHttpEndpoint.java
(rev 0)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/samples/endpointsdd/jmstransport/OrganizationHttpEndpoint.java 2010-05-05
04:31:58 UTC (rev 12161)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.endpointsdd.jmstransport;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@WebService (serviceName="OrganizationService",
portName="HttpEndpointPort",targetNamespace =
"http://org.jboss.ws/samples/jmstransport",
endpointInterface="org.jboss.test.ws.jaxws.samples.endpointsdd.jmstransport.Organization")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+
+public class OrganizationHttpEndpoint implements Organization
+{
+ @WebMethod
+ public String getContactInfo(String organization)
+ {
+ return "The '" + organization + "' boss is currently out of
office, please call again.";
+ }
+}
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/hornetq-jms.xml
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/hornetq-jms.xml
(rev 0)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/hornetq-jms.xml 2010-05-05
04:31:58 UTC (rev 12161)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<configuration xmlns="urn:hornetq"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
+ <queue name="RequestQueue">
+ <entry name="/queue/RequestQueue"/>
+ </queue>
+ <queue name="ResponseQueue">
+ <entry name="/queue/ResponseQueue"/>
+ </queue>
+</configuration>
\ No newline at end of file
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jboss-service.xml
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jboss-service.xml
(rev 0)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jboss-service.xml 2010-05-05
04:31:58 UTC (rev 12161)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.mq.destination:service=Queue,name=RequestQueue">
+ <depends
optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.mq.destination:service=Queue,name=ResponseQueue">
+ <depends
optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ </mbean>
+</server>
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jboss-web.xml
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jboss-web.xml
(rev 0)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jboss-web.xml 2010-05-05
04:31:58 UTC (rev 12161)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <context-root>/jaxws-samples-jms</context-root>
+</jboss-web>
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jbossws-cxf.xml
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jbossws-cxf.xml
(rev 0)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jbossws-cxf.xml 2010-05-05
04:31:58 UTC (rev 12161)
@@ -0,0 +1,25 @@
+<beans
xmlns='http://www.springframework.org/schema/beans'
+
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:beans='http://www.springframework.org/schema/beans'
+
xmlns:jms="http://cxf.apache.org/transports/jms"
+
xmlns:jaxws='http://cxf.apache.org/jaxws'
+
xsi:schemaLocation='http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+
http://www.w3.org/2006/07/ws-policy http://www.w3.org/2006/07/ws-policy.xsd
+
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
+
http://cxf.apache.org/transports/jms
http://cxf.apache.org/schemas/configuration/jms.xsd'>
+
+ <import resource="classpath:META-INF/cxf/cxf-extension-jms.xml"/>
+ <jaxws:endpoint id='SOAPQueryService'
+ implementor='org.jboss.test.ws.jaxws.samples.jmstransport.OrganizationHttpEndpoint'
+ >
+ <jaxws:invoker>
+ <bean class='org.jboss.wsf.stack.cxf.InvokerJSE'/>
+ </jaxws:invoker>
+ </jaxws:endpoint>
+
+ <jaxws:endpoint id='JMSQueryService'
+ implementor='org.jboss.test.ws.jaxws.samples.jmstransport.OrganizationJmsEndpoint'
+
transportId="http://cxf.apache.org/transports/jms">
+ </jaxws:endpoint>
+</beans>
+
+
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jbossws-endpoints.xml
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jbossws-endpoints.xml
(rev 0)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/jbossws-endpoints.xml 2010-05-05
04:31:58 UTC (rev 12161)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jbossws:endpoints
xmlns:jbossws="http://jbossws.jboss.org/jbossws"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xmlns:jms="http://jbossws.jboss.org/jbossws/transport/jms"
+
xsi:schemaLocation="http://jbossws.jboss.org/jbossws jbossws.xsd
http://jbossws.jboss.org/jbossws/transport/jms jms.xsd">
+ <jbossws:endpoint
implementor="org.jboss.test.ws.jaxws.samples.endpointsdd.jmstransport.OrganizationJmsEndpoint"
name="JmsImpl">
+ <jms:Address
portName="{http://org.jboss.ws/samples/jmstransport}JmsPort">
+ <jms:requestDestination>
+ <jms:property name="destinationStyle" value="queue" />
+ <jms:property name="jndiConnectionFactoryName"
value="ConnectionFactory" />
+ <jms:property name="jndiDestinationName"
value="queue/RequestQueue" />
+ </jms:requestDestination>
+
+
+ <jms:replyDestination>
+ <jms:property name="destinationStyle" value="queue" />
+ <jms:property name="jndiConnectionFactoryName"
value="ConnectionFactory" />
+ <jms:property name="jndiDestinationName"
value="queue/ResponseQueue" />
+ </jms:replyDestination>
+
+ </jms:Address>
+ </jbossws:endpoint>
+</jbossws:endpoints>
+
+
+
+
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/web.xml
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/web.xml
(rev 0)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/WEB-INF/web.xml 2010-05-05
04:31:58 UTC (rev 12161)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <servlet>
+ <servlet-name>OrganizationService</servlet-name>
+
<servlet-class>org.jboss.test.ws.jaxws.samples.endpointsdd.jmstransport.OrganizationHttpEndpoint</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>OrganizationService</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+</web-app>
+
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/META-INF/hornetq-jms.xml
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/META-INF/hornetq-jms.xml
(rev 0)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/META-INF/hornetq-jms.xml 2010-05-05
04:31:58 UTC (rev 12161)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<configuration xmlns="urn:hornetq"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
+ <queue name="RequestQueue">
+ <entry name="/queue/RequestQueue"/>
+ </queue>
+ <queue name="ResponseQueue">
+ <entry name="/queue/ResponseQueue"/>
+ </queue>
+</configuration>
\ No newline at end of file
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/META-INF/jboss-service.xml
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/META-INF/jboss-service.xml
(rev 0)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/META-INF/jboss-service.xml 2010-05-05
04:31:58 UTC (rev 12161)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.mq.destination:service=Queue,name=RequestQueue">
+ <depends
optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ </mbean>
+ <mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.mq.destination:service=Queue,name=ResponseQueue">
+ <depends
optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+ </mbean>
+</server>
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/META-INF/jbossws-endpoints.xml
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/META-INF/jbossws-endpoints.xml
(rev 0)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/META-INF/jbossws-endpoints.xml 2010-05-05
04:31:58 UTC (rev 12161)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jbossws:endpoints
xmlns:jbossws="http://jbossws.jboss.org/jbossws"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xmlns:jms="http://jbossws.jboss.org/jbossws/transport/jms"
+
xsi:schemaLocation="http://jbossws.jboss.org/jbossws jbossws.xsd
http://jbossws.jboss.org/jbossws/transport/jms jms.xsd">
+ <jbossws:endpoint
implementor="org.jboss.test.ws.jaxws.samples.endpointsdd.jmstransport.OrganizationEndpoint"
name="JmsImpl">
+ </jbossws:endpoint>
+</jbossws:endpoints>
\ No newline at end of file
Added:
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/wsdl/jaxws-samples.wsdl
===================================================================
---
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/wsdl/jaxws-samples.wsdl
(rev 0)
+++
stack/cxf/branches/jms-integration/modules/testsuite/cxf-tests/src/test/resources/jaxws/samples/endpointsdd/fromwsdl/wsdl/jaxws-samples.wsdl 2010-05-05
04:31:58 UTC (rev 12161)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions name="OrganizationService"
targetNamespace="http://org.jboss.ws/samples/jmstransport"
xmlns:ns1="http://schemas.xmlsoap.org/wsdl/soap/http"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://org.jboss.ws/samples/jmstransport"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:jms="http://cxf.apache.org/transports/jms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <wsdl:message name="getContactInfoResponse">
+ <wsdl:part name="return" type="xsd:string">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="getContactInfo">
+ <wsdl:part name="arg0" type="xsd:string">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name="Organization">
+ <wsdl:operation name="getContactInfo">
+ <wsdl:input message="tns:getContactInfo"
name="getContactInfo">
+ </wsdl:input>
+ <wsdl:output message="tns:getContactInfoResponse"
name="getContactInfoResponse">
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="OrganizationServiceSoapBinding"
type="tns:Organization">
+ <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="getContactInfo">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input name="getContactInfo">
+ <soap:body namespace="http://org.jboss.ws/samples/jmstransport"
use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="getContactInfoResponse">
+ <soap:body namespace="http://org.jboss.ws/samples/jmstransport"
use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="OrganizationService">
+ <wsdl:port binding="tns:OrganizationServiceSoapBinding"
name="HttpEndpointPort">
+ <jms:address
+ destinationStyle="queue"
+ jndiConnectionFactoryName="ConnectionFactory"
+ jndiDestinationName="queue/RequestQueue"
+ jndiReplyDestinationName="queue/ResonseQueue"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>