You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2011/08/11 16:59:27 UTC

[jira] [Resolved] (CXF-3734) CXF serverFactoryBean should not use the thread default bus by default

     [ https://issues.apache.org/jira/browse/CXF-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CXF-3734.
-------------------------------

    Resolution: Fixed

> 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.3, 2.4, 2.3.4, 2.4.1, 2.3.5
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.3.6, 2.4.2
>
>
> 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