camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r637698 - /activemq/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/invoker/CxfClient.java
Date Mon, 17 Mar 2008 01:26:11 GMT
Author: ningjiang
Date: Sun Mar 16 18:26:09 2008
New Revision: 637698

URL: http://svn.apache.org/viewvc?rev=637698&view=rev
Log:
CAMEL-386 added the endpoint properties into message with thanks to Marc

Modified:
    activemq/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/invoker/CxfClient.java

Modified: activemq/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/invoker/CxfClient.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/invoker/CxfClient.java?rev=637698&r1=637697&r2=637698&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/invoker/CxfClient.java
(original)
+++ activemq/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/invoker/CxfClient.java
Sun Mar 16 18:26:09 2008
@@ -109,6 +109,13 @@
 
         Message message = prepareMessage(exchange, requestContext, param, invokingContext);
 
+        // add the endpoint props to the message
+        Endpoint ep = getEndpoint();
+        // the ep should not be null , just in case if it set to be null
+        if (ep != null) {
+            message.putAll(ep);
+        }
+
         PhaseInterceptorChain chain = setupInterceptorChain(getEndpoint());
 
         message.setInterceptorChain(chain);



Mime
View raw message