camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r675467 - /activemq/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfExchange.java
Date Thu, 10 Jul 2008 07:43:48 GMT
Author: ningjiang
Date: Thu Jul 10 00:43:47 2008
New Revision: 675467

URL: http://svn.apache.org/viewvc?rev=675467&view=rev
Log:
CAMEL-691 copy the exchange pattern when create a new CxfExchange instance

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

Modified: activemq/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfExchange.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfExchange.java?rev=675467&r1=675466&r2=675467&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfExchange.java
(original)
+++ activemq/camel/trunk/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfExchange.java
Thu Jul 10 00:43:47 2008
@@ -35,8 +35,8 @@
     public static final String DATA_FORMAT = "DATA_FORMAT";
     private Exchange exchange;
 
-    public CxfExchange(CamelContext context, Exchange exchange) {
-        super(context);
+    public CxfExchange(CamelContext context, ExchangePattern pattern, Exchange exchange)
{
+        super(context, pattern);
         this.exchange = exchange;
         // TO avoid the NPE here
         if (exchange != null) {
@@ -73,7 +73,7 @@
 
     @Override
     public org.apache.camel.Exchange newInstance() {
-        return new CxfExchange(this.getContext(), this.getExchange());
+        return new CxfExchange(this.getContext(), this.getPattern(), this.getExchange());
     }
 
     @Override



Mime
View raw message