[ 
https://issues.apache.org/jira/browse/CXF-3601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13055351#comment-13055351
 ] 

David Liu commented on CXF-3601:
--------------------------------

Hi Willem,
  Thanks for looking into it.

  Yes, I am using spring config, and also I can override bean in spring config. 
However, I want the ability to override the bus-extension.txt because:
 1. I want to remove some components from bus-extension.txt files, I know those 
components are deferred, but I still want to remove them in some case.
 2. I have some client code which does not use spring, so I also need a way to 
override bean in bus-extension.txt.

David

> Cannot override extension in bus-extension.txt
> ----------------------------------------------
>
>                 Key: CXF-3601
>                 URL: https://issues.apache.org/jira/browse/CXF-3601
>             Project: CXF
>          Issue Type: Bug
>          Components: Bus, Core
>    Affects Versions: 2.4.1
>            Reporter: David Liu
>            Assignee: Willem Jiang
>
> Hi,
>   it looks like we cannot override CXF's extends if it is in 
> bus-extensions.txt file.
>  
>   I want to customize cxf's HTTPTransportFactory which defined in 
> bus-extensions.txt. however, it seems I cannot override the original one from 
> CXF. If I create a new bus-extension.txt, and put my customized 
> HTTPTransportFactory there,  e.g. 
> *mycxf.jetty.MyJettyHTTPDestinationFactory:org.apache.cxf.transport.http.HTTPTransportFactory:true*,
>  CXF will load both my bus-extension.txt and its own bus-extension.txt in 
> ExtensionManager, and will use its HTTPTransportFactory to replace 
> MyJettyHTTPDestinationFactory. 
>   Could you please take a look? thanks.
> David

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

        

Reply via email to