cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-3601) Cannot override extension in bus-extension.txt
Date Fri, 24 Jun 2011 07:36:48 GMT

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

Willem Jiang commented on CXF-3601:
-----------------------------------

Hi David,

Do you use spring to configure the CXF components? 
If so you can just create a spring configuration like this and just include this file within
your endpoint configuration.

{code}
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:osgi="http://www.springframework.org/schema/osgi"
       xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

  <bean id="org.apache.cxf.transport.http.HTTPTransportFactory" class="mycxf.jetty.MyJettyHTTPDestinationFactory"/>

</beans>
{code}

It will override the bus-extension.txt setting by default.

Willem

> 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

        

Mime
View raw message