Mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-3929) CXF @deprecation for some of the examples
Date Mon, 02 May 2011 15:52:04 GMT

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

Christian Schneider commented on CAMEL-3929:
--------------------------------------------

Yes .. it is part of the redesign of the bus extensions Dan did.

Bus extensions should now be declared in a text file. 
See the file from cxf core as an example:
http://svn.apache.org/repos/asf/cxf/trunk/rt/core/src/main/resources/META-INF/cxf/bus-extensions.txt

The implementation can be found here:
http://svn.apache.org/repos/asf/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionManagerImpl.java
http://svn.apache.org/repos/asf/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionFragmentParser.java

The first parameter is the name of the implementation class the second is optionally the interface
it should be published with. The third parameter is boolean and says if the initialization
should be lazy.

So I think in case of camel-cxf the file could contain:
org.apache.camel.component.cxf.transport.CamelTransportFactory::true

I think the examples should not be affected by this as they usually do not define bus extensions.

There will be some warnings for the examples as most .xml imports in spring are now deprecated
but this is another thing. 

> CXF @deprecation for some of the examples
> -----------------------------------------
>
>                 Key: CAMEL-3929
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3929
>             Project: Camel
>          Issue Type: Task
>          Components: examples
>    Affects Versions: 2.7.1
>            Reporter: Claus Ibsen
>            Assignee: Daniel Kulp
>            Priority: Minor
>
> Notice CXF logging this warning when I did a mvn install in the examples
> 2011-05-02 17:38:54,028 [main           ] WARN  ExtensionManagerImpl           - Loading
Bus extensions via bus-extensions.xml (found url jar:file:/Users/davsclaus/.m2/repository/org/apache/camel/camel-cxf/2.8-SNAPSHOT/camel-cxf-2.8-SNAPSHOT.jar!/bus-extensions.xml)
is deprecated.  Use META-INF/cxf/bus-extensions.txt instead.
> We will have to check every example that uses CXF for this warn and resolve it.

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

Mime
View raw message