Author: alessio.soldano(a)jboss.com
Date: 2009-08-25 05:16:51 -0400 (Tue, 25 Aug 2009)
New Revision: 10601
Modified:
stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java
Log:
svn merge -r 10599:10600
https://svn.jboss.org/repos/jbossws/stack/cxf/trunk .
Modified:
stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java
===================================================================
---
stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java 2009-08-25
08:52:53 UTC (rev 10600)
+++
stack/cxf/branches/jbossws-cxf-3.2.0.GA/modules/server/src/main/java/org/jboss/wsf/stack/cxf/CXFServletExt.java 2009-08-25
09:16:51 UTC (rev 10601)
@@ -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);