Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4, 2.4.1
-
None
-
Unknown
Description
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