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 2010/02/27 10:20:05 UTC
[jira] Commented: (CXF-2685) CXFBusFactory should provides a option
which could disable the setDefaultBus action.
[ https://issues.apache.org/jira/browse/CXF-2685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12839205#action_12839205 ]
Willem Jiang commented on CXF-2685:
-----------------------------------
I tried to add this option in the CXfBusFactory and SpringBusFactory, but when I ran the tests , I found CXFBusImpl will try to set the default bus by calling " CXFBusFactory.possiblySetDefaultBus(this);" in its construction method.
If I take out this code from CXFBusImpl, it will cause some unexpected error, as user could use the Spring to create the CXFBusImpl directly ;
if I don't take out this code, the new added option can't take effect.
So I decide to hold this enhancement, user can work around this kind of issue by set CXF service instance bus attribute directly, and don't relay on the default bus.
> CXFBusFactory should provides a option which could disable the setDefaultBus action.
> ------------------------------------------------------------------------------------
>
> Key: CXF-2685
> URL: https://issues.apache.org/jira/browse/CXF-2685
> Project: CXF
> Issue Type: Improvement
> Components: Bus
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.2.7, 2.3
>
>
> As we may deploy the multiple CXF service instance into the container like SMX or Spring, and there could be more than one bus instance to use.
> When we use the BusFactory to create the bus , we don't want BusFactory to set the default bus which may pollute default bus.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.