|
2 | 2 | title: Send or receive events from Azure Event Hubs using Java (latest)
|
3 | 3 | description: This article provides a walkthrough of creating a Java application that sends/receives events to/from Azure Event Hubs using the latest azure-messaging-eventhubs package.
|
4 | 4 | ms.topic: quickstart
|
5 |
| -ms.date: 10/10/2022 |
| 5 | +ms.date: 12/21/2022 |
6 | 6 | ms.devlang: java
|
7 | 7 | ms.custom: devx-track-java, mode-api
|
8 | 8 | ---
|
@@ -30,11 +30,11 @@ This section shows you how to create a Java application to send events an event
|
30 | 30 | First, create a new **Maven** project for a console/shell application in your favorite Java development environment. Update the `pom.xml` file with the following dependency. The Java client library for Event Hubs is available in the [Maven Central Repository](https://search.maven.org/search?q=a:azure-messaging-eventhubs).
|
31 | 31 |
|
32 | 32 | ```xml
|
33 |
| -<dependency> |
34 |
| - <groupId>com.azure</groupId> |
35 |
| - <artifactId>azure-messaging-eventhubs</artifactId> |
36 |
| - <version>5.7.0</version> |
37 |
| -</dependency> |
| 33 | + <dependency> |
| 34 | + <groupId>com.azure</groupId> |
| 35 | + <artifactId>azure-messaging-eventhubs</artifactId> |
| 36 | + <version>5.15.0</version> |
| 37 | + </dependency> |
38 | 38 | ```
|
39 | 39 |
|
40 | 40 | > [!NOTE]
|
@@ -137,18 +137,18 @@ Add the following dependencies in the pom.xml file.
|
137 | 137 | - [azure-messaging-eventhubs-checkpointstore-blob](https://search.maven.org/search?q=a:azure-messaging-eventhubs-checkpointstore-blob)
|
138 | 138 |
|
139 | 139 | ```xml
|
140 |
| -<dependencies> |
141 |
| - <dependency> |
142 |
| - <groupId>com.azure</groupId> |
143 |
| - <artifactId>azure-messaging-eventhubs</artifactId> |
144 |
| - <version>5.7.0</version> |
145 |
| - </dependency> |
146 |
| - <dependency> |
147 |
| - <groupId>com.azure</groupId> |
148 |
| - <artifactId>azure-messaging-eventhubs-checkpointstore-blob</artifactId> |
149 |
| - <version>1.6.0</version> |
150 |
| - </dependency> |
151 |
| -</dependencies> |
| 140 | + <dependencies> |
| 141 | + <dependency> |
| 142 | + <groupId>com.azure</groupId> |
| 143 | + <artifactId>azure-messaging-eventhubs</artifactId> |
| 144 | + <version>5.15.0</version> |
| 145 | + </dependency> |
| 146 | + <dependency> |
| 147 | + <groupId>com.azure</groupId> |
| 148 | + <artifactId>azure-messaging-eventhubs-checkpointstore-blob</artifactId> |
| 149 | + <version>1.16.1</version> |
| 150 | + </dependency> |
| 151 | + </dependencies> |
152 | 152 | ```
|
153 | 153 |
|
154 | 154 | 1. Add the following **import** statements at the top of the Java file.
|
|
0 commit comments