[jbossws-commits] JBossWS SVN: r19643 - stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jms.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Thu Apr 16 09:19:03 EDT 2015


Author: asoldano
Date: 2015-04-16 09:19:03 -0400 (Thu, 16 Apr 2015)
New Revision: 19643

Modified:
   stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jms/TestServlet.java
Log:
No need to call Endpoint.publish() as the endpoint is already deployed by the stack integration


Modified: stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jms/TestServlet.java
===================================================================
--- stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jms/TestServlet.java	2015-04-16 10:19:15 UTC (rev 19642)
+++ stack/cxf/trunk/modules/testsuite/cxf-tests/src/test/java/org/jboss/test/ws/jaxws/cxf/jms/TestServlet.java	2015-04-16 13:19:03 UTC (rev 19643)
@@ -30,7 +30,6 @@
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import javax.xml.namespace.QName;
-import javax.xml.ws.Endpoint;
 import javax.xml.ws.Service;
 
 import org.apache.cxf.Bus;
@@ -52,8 +51,6 @@
          //start a new bus to avoid affecting the one that could already be assigned to this thread
          Bus bus = BusFactory.newInstance().createBus();
          BusFactory.setThreadDefaultBus(bus);
-         Object implementor = new HelloWorldImpl();
-         Endpoint ep = Endpoint.publish("jms:queue:testQueue", implementor);
          try
          {
             //use HelloWorldServiceLocal service which has local connection factory references (we're running on the same JVM here)
@@ -65,7 +62,6 @@
          }
          finally
          {
-            ep.stop();
             bus.shutdown(true);
          }
          res.getWriter().print(result);



More information about the jbossws-commits mailing list