You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.If you're using Eclipse, right-click the project, select **Export**, expand **Java**, select **Runnable JAR file**, and follow the steps to create a runnable JAR file.
426
-
1. If you are signed into the machine using a user account that's different from the user account added to the **AzureServiceBusDataOwner** role, follow these steps. Otherwise, skip this step and move on to run the Jar file in the next step.
418
+
1. If you're signed into the machine using a user account that's different from the user account added to the **Azure Service Bus Data Owner** role, follow these steps. Otherwise, skip this step and move on to run the Jar file in the next step.
427
419
428
420
1. [Install Azure CLI](/cli/azure/install-azure-cli-windows) on your machine.
429
421
1. Run the following CLI command to sign in to Azure. Use the same user account that you added to the **Azure Service Bus Data Owner** role.
@@ -464,7 +456,7 @@ Stopping and closing the processor
464
456
```
465
457
---
466
458
467
-
On the **Overview** page for the Service Bus namespace in the Azure portal, you can see **incoming** and **outgoing** message count. You may need to wait for a minute or so and then refresh the page to see the latest values.
459
+
On the **Overview** page for the Service Bus namespace in the Azure portal, you can see **incoming** and **outgoing** message count. Wait for a minute or so and then refresh the page to see the latest values.
468
460
469
461
:::image type="content" source="./media/service-bus-java-how-to-use-queues/overview-incoming-outgoing-messages.png" alt-text="Incoming and outgoing message count" lightbox="./media/service-bus-java-how-to-use-queues/overview-incoming-outgoing-messages.png":::
Copy file name to clipboardExpand all lines: articles/service-bus-messaging/service-bus-java-how-to-use-topics-subscriptions.md
+8-16Lines changed: 8 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Get started with Azure Service Bus topics (Java)
3
3
description: This tutorial shows you how to send messages to Azure Service Bus topics and receive messages from topics' subscriptions using the Java programming language.
4
-
ms.date: 04/12/2023
4
+
ms.date: 02/28/2024
5
5
ms.topic: quickstart
6
6
ms.devlang: java
7
7
ms.custom: mode-api, devx-track-extended-java
@@ -86,7 +86,6 @@ Update the `pom.xml` file to add a dependency to the Azure Service Bus package.
86
86
importcom.azure.messaging.servicebus.*;
87
87
importcom.azure.identity.*;
88
88
89
-
importjava.util.concurrent.CountDownLatch;
90
89
importjava.util.concurrent.TimeUnit;
91
90
importjava.util.Arrays;
92
91
importjava.util.List;
@@ -97,7 +96,6 @@ Update the `pom.xml` file to add a dependency to the Azure Service Bus package.
97
96
```java
98
97
importcom.azure.messaging.servicebus.*;
99
98
100
-
importjava.util.concurrent.CountDownLatch;
101
99
importjava.util.concurrent.TimeUnit;
102
100
importjava.util.Arrays;
103
101
importjava.util.List;
@@ -311,8 +309,6 @@ In this section, you add code to retrieve messages from a subscription to the to
1.If you're using Eclipse, right-click the project, select **Export**, expand **Java**, select **Runnable JAR file**, and follow the steps to create a runnable JAR file.
431
-
1. If you are signed into the machine using a user account that's different from the user account added to the **AzureServiceBusDataOwner** role, follow these steps. Otherwise, skip this step and move on to run the Jar file in the next step.
423
+
1. If you're signed into the machine using a user account that's different from the user account added to the **Azure Service Bus Data Owner** role, follow these steps. Otherwise, skip this step and move on to run the Jar file in the next step.
432
424
433
425
1. [Install Azure CLI](/cli/azure/install-azure-cli-windows) on your machine.
434
426
1. Run the following CLI command to sign in to Azure. Use the same user account that you added to the **Azure Service Bus Data Owner** role.
On the **Overview** page for the Service Bus namespace in the Azure portal, you can see **incoming** and **outgoing** message count. You may need to wait for a minute or so and then refresh the page to see the latest values.
461
+
On the **Overview** page for the Service Bus namespace in the Azure portal, you can see **incoming** and **outgoing** message count. Wait for a minute or so and then refresh the page to see the latest values.
470
462
471
463
:::image type="content" source="./media/service-bus-java-how-to-use-queues/overview-incoming-outgoing-messages.png" alt-text="Incoming and outgoing message count" lightbox="./media/service-bus-java-how-to-use-queues/overview-incoming-outgoing-messages.png":::
0 commit comments