camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r1305008 - /camel/trunk/components/camel-cxf-transport/src/main/java/org/apache/camel/component/cxf/transport/CamelDestination.java
Date Sun, 25 Mar 2012 11:32:28 GMT
Author: ningjiang
Date: Sun Mar 25 11:32:28 2012
New Revision: 1305008

URL: http://svn.apache.org/viewvc?rev=1305008&view=rev
Log:
CAMEL-5116 CxfDestination should copy the in message header to the out message

Modified:
    camel/trunk/components/camel-cxf-transport/src/main/java/org/apache/camel/component/cxf/transport/CamelDestination.java

Modified: camel/trunk/components/camel-cxf-transport/src/main/java/org/apache/camel/component/cxf/transport/CamelDestination.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-cxf-transport/src/main/java/org/apache/camel/component/cxf/transport/CamelDestination.java?rev=1305008&r1=1305007&r2=1305008&view=diff
==============================================================================
--- camel/trunk/components/camel-cxf-transport/src/main/java/org/apache/camel/component/cxf/transport/CamelDestination.java
(original)
+++ camel/trunk/components/camel-cxf-transport/src/main/java/org/apache/camel/component/cxf/transport/CamelDestination.java
Sun Mar 25 11:32:28 2012
@@ -253,6 +253,8 @@ public class CamelDestination extends Ab
     }
 
     protected void propagateResponseHeadersToCamel(Message outMessage, Exchange camelExchange)
{
+        // copy the camel in message header to the out message
+        camelExchange.getOut().getHeaders().putAll(camelExchange.getIn().getHeaders());
         CxfHeaderHelper.propagateCxfToCamel(headerFilterStrategy, outMessage,
                                             camelExchange.getOut().getHeaders(), camelExchange);
     }



Mime
View raw message