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.

Reply via email to