Skip to content

Latest commit

 

History

History
74 lines (47 loc) · 1.91 KB

File metadata and controls

74 lines (47 loc) · 1.91 KB

Receive an event

eventhubs/receive-event/README.md

Prerequisites

This example assumes you have previously completed the following examples:

  1. Create a resource group
  2. Create a namespace
  3. Create an event hub
  4. Send an event

Receive an event

Build the JAR file using the Maven command line below:

  mvn clean install

Execute the following command line to receive an event from the event hub:

  java -jar target/receive-event.jar

Cleanup

Do NOT forget to remove the resources once you are done running the example.

Additional documentation

  1. Azure Event Hubs documentation
  2. Use Java to send events to or receive events from Azure Event Hubs (azure-messaging-eventhubs)