Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.35 KB

messagehub064.md

File metadata and controls

29 lines (18 loc) · 1.35 KB
copyright lastupdated
years
2015, 2017
2017-03-02

{:new_window: target="_blank"} {:shortdesc: .shortdesc} {:screen: .screen} {:codeblock: .codeblock} {:pre: .pre}

How to use, download, and run the Java Kafka API sample

{: #kafka_sample}

The Java™ Kafka API sample is an example producer and consumer that is written in Java, which directly uses the Kafka API. You can run this sample locally or in {{site.data.keyword.Bluemix_short}}.

The sample code is in the message-hub-samples GitHub project External link icon{:new_window}. Although the sample uses the Kafka API to send and receive messages, the sample uses the {{site.data.keyword.messagehub}} Administration API to create the topic it sends messages to and receives messages from.

For more information about the setup and running of the sample, see the README.md External link icon{:new_window}.

For a detailed walkthrough of how to run the sample, see Getting started with {{site.data.keyword.messagehub}}.