camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-694) CXF component's CamelDestination gets configured twice
Date Fri, 11 Jul 2008 06:50:00 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Willem Jiang resolved CAMEL-694.
--------------------------------

    Resolution: Fixed

Patch applied with thanks to William.

http://svn.apache.org/viewvc?rev=675833&view=rev

> CXF component's CamelDestination gets configured twice
> ------------------------------------------------------
>
>                 Key: CAMEL-694
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-694
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-cxf
>    Affects Versions: 1.3.0
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 1.4.0
>
>
> CamelTransportFactory does not need to call
> "configurer.configurationBean(destination)" as it has been performed
> by CamelDestination..initConfig() in its constructor.  
> {code}
> Index: components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelTransportFactory.java
> ===================================================================
> --- components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelTransportFactory.java
(revision 675685)
> +++ components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelTransportFactory.java
(working copy)
> @@ -26,7 +26,6 @@
>  
>  import org.apache.camel.CamelContext;
>  import org.apache.cxf.Bus;
> -import org.apache.cxf.configuration.Configurer;
>  import org.apache.cxf.service.model.EndpointInfo;
>  import org.apache.cxf.transport.AbstractTransportFactory;
>  import org.apache.cxf.transport.Conduit;
> @@ -87,12 +86,7 @@
>      }
>  
>      public Destination getDestination(EndpointInfo endpointInfo) throws IOException
{
> -        CamelDestination destination = new CamelDestination(camelContext, bus, this,
endpointInfo);
> -        Configurer configurer = bus.getExtension(Configurer.class);
> -        if (null != configurer) {
> -            configurer.configureBean(destination);
> -        }
> -        return destination;
> +        return new CamelDestination(camelContext, bus, this, endpointInfo);
>      }
>  
>      public Set<String> getUriPrefixes() {
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message