Author: alessio.soldano(a)jboss.com
Date: 2009-11-23 06:22:01 -0500 (Mon, 23 Nov 2009)
New Revision: 11143
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ServiceObjectFactory.java
Log:
[JBWS-2822] Setting new bus read from configuration to thread local only, do not change
the BusFactory static default bus
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ServiceObjectFactory.java
===================================================================
---
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ServiceObjectFactory.java 2009-11-23
10:19:25 UTC (rev 11142)
+++
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ServiceObjectFactory.java 2009-11-23
11:22:01 UTC (rev 11143)
@@ -96,17 +96,17 @@
UnifiedServiceRefMetaData serviceRef = unmarshallServiceRef(ref);
Bus bus;
+ //Reset bus before constructing Service
+ BusFactory.setThreadDefaultBus(null);
URL cxfConfig = getCXFConfiguration(serviceRef.getVfsRoot());
if (cxfConfig != null)
{
SpringBusFactory busFactory = new SpringBusFactory();
bus = busFactory.createBus(cxfConfig);
- BusFactory.setDefaultBus(bus);
+ BusFactory.setThreadDefaultBus(bus);
}
else
{
- //Reset bus before constructing Service
- BusFactory.setThreadDefaultBus(null);
bus = BusFactory.getThreadDefaultBus();
}
Show replies by date