You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/02/27 07:49:03 UTC
[camel-examples] branch master updated (00128cc -> 429ade0)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-examples.git.
from 00128cc Polished
new 71a60e8 Removed kafka-avro-serializer placeholder
new 429ade0 Camel-example-kafka: Fixed build
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../org/apache/camel/example/kafka/MessagePublisherClient.java | 7 +++----
examples/pom.xml | 1 -
2 files changed, 3 insertions(+), 5 deletions(-)
[camel-examples] 02/02: Camel-example-kafka: Fixed build
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-examples.git
commit 429ade0375bb0fc9a7857c65b19918d7fb02851e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 27 08:47:04 2020 +0100
Camel-example-kafka: Fixed build
---
.../org/apache/camel/example/kafka/MessagePublisherClient.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/examples/camel-example-kafka/src/main/java/org/apache/camel/example/kafka/MessagePublisherClient.java b/examples/camel-example-kafka/src/main/java/org/apache/camel/example/kafka/MessagePublisherClient.java
index 62fcf4e..0aabc64 100644
--- a/examples/camel-example-kafka/src/main/java/org/apache/camel/example/kafka/MessagePublisherClient.java
+++ b/examples/camel-example-kafka/src/main/java/org/apache/camel/example/kafka/MessagePublisherClient.java
@@ -52,22 +52,21 @@ public final class MessagePublisherClient {
// setup kafka component with the brokers
ComponentsBuilderFactory.kafka()
- .brokers("{{kafka.host}}:{{kafka.port}}")
.register(camelContext, "kafka");
from("direct:kafkaStart").routeId("DirectToKafka")
- .to("kafka:{{producer.topic}}").log("${headers}");
+ .to("kafka:{{producer.topic}}?brokers={{kafka.host}}:{{kafka.port}}").log("${headers}");
// Topic can be set in header as well.
from("direct:kafkaStartNoTopic").routeId("kafkaStartNoTopic")
- .to("kafka:dummy")
+ .to("kafka:dummy?brokers={{kafka.host}}:{{kafka.port}}")
.log("${headers}");
// Use custom partitioner based on the key.
from("direct:kafkaStartWithPartitioner").routeId("kafkaStartWithPartitioner")
- .to("kafka:{{producer.topic}}?partitioner={{producer.partitioner}}")
+ .to("kafka:{{producer.topic}}?partitioner={{producer.partitioner}}&brokers={{kafka.host}}:{{kafka.port}}")
.log("${headers}");
[camel-examples] 01/02: Removed kafka-avro-serializer placeholder
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-examples.git
commit 71a60e87a008aaaac2e7d65e9e285e6a98188fad
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 27 08:36:55 2020 +0100
Removed kafka-avro-serializer placeholder
---
examples/pom.xml | 1 -
1 file changed, 1 deletion(-)
diff --git a/examples/pom.xml b/examples/pom.xml
index 418ce18..ac0487b 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -238,7 +238,6 @@
<jooq-version>3.11.12</jooq-version>
<junit-jupiter-version>5.5.2</junit-jupiter-version>
<junit-version>4.12</junit-version>
- <kafka-avro-serializer-version>5.2.2</kafka-avro-serializer-version>
<karaf4-version>4.2.8</karaf4-version>
<log4j2-version>2.13.0</log4j2-version>
<log4j-version>1.2.17</log4j-version>