Author: alessio.soldano(a)jboss.com
Date: 2009-08-25 04:52:53 -0400 (Tue, 25 Aug 2009)
New Revision: 10600
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java
Log:
[JBWS-1655] Setting the bus into the the SoapTransportFactoryExt
Modified:
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java
===================================================================
---
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java 2009-08-21
12:44:13 UTC (rev 10599)
+++
stack/cxf/trunk/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java 2009-08-25
08:52:53 UTC (rev 10600)
@@ -33,8 +33,9 @@
import javax.servlet.http.HttpServletResponse;
import javax.xml.ws.WebServiceException;
+import org.apache.cxf.Bus;
import org.apache.cxf.BusFactory;
-import org.apache.cxf.transport.DestinationFactory;
+import org.apache.cxf.binding.soap.SoapTransportFactory;
import org.apache.cxf.transport.DestinationFactoryManager;
import org.apache.cxf.transport.servlet.CXFServlet;
import org.apache.cxf.transport.servlet.ServletController;
@@ -101,9 +102,11 @@
ServletContext svCtx = getServletContext();
ApplicationContext appCtx =
(ApplicationContext)svCtx.getAttribute("org.springframework.web.context.WebApplicationContext.ROOT");
+ Bus bus = getBus();
//Install our SoapTransportFactory to allow for proper soap address rewrite
- DestinationFactoryManager dfm =
getBus().getExtension(DestinationFactoryManager.class);
- DestinationFactory factory = new SoapTransportFactoryExt();
+ DestinationFactoryManager dfm = bus.getExtension(DestinationFactoryManager.class);
+ SoapTransportFactory factory = new SoapTransportFactoryExt();
+ factory.setBus(bus);
dfm.registerDestinationFactory(Constants.NS_SOAP11, factory);
dfm.registerDestinationFactory(Constants.NS_SOAP12, factory);
Show replies by date