Kafka_DSL Sample Improvements
- get rid of topic creator and scala deps - use boot properties - demonstrate using the DSL to dynamically add adapters
This commit is contained in:
committed by
Artem Bilan
parent
038ee4576a
commit
a198e45239
@@ -95,7 +95,7 @@ public class Application {
|
||||
addAnotherListenerForTopics(this.properties.getNewTopic());
|
||||
headers = Collections.singletonMap(KafkaHeaders.TOPIC, this.properties.getNewTopic());
|
||||
for (int i = 0; i < 10; i++) {
|
||||
toKafka.send(new GenericMessage<>("foo" + i, headers));
|
||||
toKafka.send(new GenericMessage<>("bar" + i, headers));
|
||||
}
|
||||
received = fromKafka.receive(10000);
|
||||
count = 0;
|
||||
|
||||
Reference in New Issue
Block a user