cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <>
Subject [jira] [Commented] (CXF-3601) Cannot override extension in bus-extension.txt
Date Wed, 29 Jun 2011 14:36:28 GMT


Daniel Kulp commented on CXF-3601:

The easiest way to handle this is to have your extension itself be non-deferred and handle
the replacement in the constructor:

public class MyExtension extends HttpTransportFactory {
    public MyExtension(Bus b) {
        bus.getDestinationManager().... remove the old one
        ...  add myself .... 

> Cannot override extension in bus-extension.txt
> ----------------------------------------------
>                 Key: CXF-3601
>                 URL:
>             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:


View raw message