CXF serverFactoryBean should not use the thread default bus by default
----------------------------------------------------------------------

                 Key: CXF-3734
                 URL: https://issues.apache.org/jira/browse/CXF-3734
             Project: CXF
          Issue Type: Improvement
          Components: JAX-RS, JAX-WS Runtime, Simple Frontend
    Affects Versions: 2.3.5, 2.4.1, 2.3.4, 2.4, 2.3.3, 2.3.6, 2.4.2
            Reporter: Willem Jiang
            Assignee: Willem Jiang
             Fix For: 2.3.7, 2.4.3


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
{code}
     public void setApplicationContext(ApplicationContext ctx) throws 
BeansException {
            if (getBus() == null) {
                setBus(BusWiringBeanFactoryPostProcessor.addDefaultBus(ctx));
            }
        }
{code}
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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to