Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 376 Bytes

File metadata and controls

13 lines (8 loc) · 376 Bytes

Simple Message Producer

Demonstrates how to dispatch message to Kafka Topic using Java API.

Listing messages from the topic

To verify if the message is dispatched successfully to the topic, we can use following script.

$KAFKA_HOME/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic greetingTopic --from-beginning