camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/2] camel git commit: camel-kafka should create exchange with the endpoint as reference. Thanks to Rahul Jain for the patch.
Date Sun, 28 Jun 2015 08:53:09 GMT
camel-kafka should create exchange with the endpoint as reference. Thanks to Rahul Jain for
the patch.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/f9245e2f
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/f9245e2f
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/f9245e2f

Branch: refs/heads/camel-2.14.x
Commit: f9245e2f5834f5627d11e848981d62b8ba7e6c6e
Parents: 38d7dec
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sun Jun 28 10:58:10 2015 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sun Jun 28 10:59:05 2015 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/kafka/KafkaEndpoint.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/f9245e2f/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaEndpoint.java
b/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaEndpoint.java
index c747a7f..0a1ccc5 100644
--- a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaEndpoint.java
+++ b/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/KafkaEndpoint.java
@@ -85,7 +85,7 @@ public class KafkaEndpoint extends DefaultEndpoint implements MultipleConsumersS
     }
 
     public Exchange createKafkaExchange(MessageAndMetadata<byte[], byte[]> mm) {
-        Exchange exchange = new DefaultExchange(getCamelContext(), getExchangePattern());
+        Exchange exchange = new DefaultExchange(this, getExchangePattern());
 
         Message message = new DefaultMessage();
         message.setHeader(KafkaConstants.PARTITION, mm.partition());


Mime
View raw message