-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.4, 2.4.1
-
Fix Version/s: 2.4.2
-
Component/s: JAX-RS, JAX-WS Runtime, Simple Frontend
-
Labels:None
-
Estimated Complexity:Unknown
AbstractEndpointFactory.getBus() will try to call the BusFactory.getThreadDefaultBus() if the bus is null.
But in the CXF ServerFactoryBean the bus wiring code is like this
public void setApplicationContext(ApplicationContext ctx) throws BeansException { if (getBus() == null) { setBus(BusWiringBeanFactoryPostProcessor.addDefaultBus(ctx)); } }
This behavior will cause some error as this mail thread[1] discussed
[1]http://camel.465427.n5.nabble.com/cxf-rest-service-disappears-with-camel-2-8-0-td4666710.html