Skip to content

Commit f12299b

Browse files
Minor fixes.
1 parent c738b12 commit f12299b

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

articles/service-bus-messaging/service-bus-java-how-to-use-queues.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ ms.custom: passwordless-java, devx-track-extended-java
1616
> * [JavaScript](service-bus-nodejs-how-to-use-queues.md)
1717
> * [Python](service-bus-python-how-to-use-queues.md)
1818
19-
This quick start provides step-by-step instructions for a simple scenario of sending messages to a Service Bus queue and receiving them. You can find prebuilt Java samples for Azure Service Bus in the [Azure SDK for Java repository on GitHub](https://github.com/azure/azure-sdk-for-java/tree/main/sdk/servicebus/azure-messaging-servicebus/src/samples).
20-
21-
In this quickstart, you create a Java app to send messages to and receive messages from an Azure Service Bus queue.
19+
This quickstart provides step-by-step instructions for a simple scenario of sending messages to a Service Bus queue and receiving them. You create a Java app to send messages to and receive messages from an Azure Service Bus queue. You can find prebuilt Java samples for Azure Service Bus in the [Azure SDK for Java repository on GitHub](https://github.com/azure/azure-sdk-for-java/tree/main/sdk/servicebus/azure-messaging-servicebus/src/samples).
2220

2321
> [!TIP]
2422
> If you're working with Azure Service Bus resources in a Spring application, we recommend that you consider [Spring Cloud Azure](/azure/developer/java/spring-framework/). Spring Cloud Azure is an open-source project that provides seamless Spring integration with Azure services. To learn more about Spring Cloud Azure, and to see an example using Service Bus, see [Spring Cloud Stream with Azure Service Bus](/azure/developer/java/spring-framework/configure-spring-cloud-stream-binder-java-app-with-service-bus).
@@ -110,7 +108,7 @@ Update the `pom.xml` file to add a dependency to the Azure Service Bus package.
110108
```
111109
---
112110

113-
1. In the class, define variables to hold connection string and queue name.
111+
1. In the class, define variables to hold the connection string and queue name.
114112

115113
### [Passwordless (Recommended)](#tab/passwordless)
116114

@@ -180,7 +178,7 @@ Update the `pom.xml` file to add a dependency to the Azure Service Bus package.
180178
```
181179
---
182180

183-
1. Add a method named `createMessages` in the class to create a list of messages. Typically, you get these messages from different parts of your application. Here, you use a list of sample messages.
181+
1. Add a method named `createMessages` in the class to create a list of messages. Typically, you get these messages from different parts of your application. In this example, you use a list of sample messages.
184182

185183
```java
186184
static List<ServiceBusMessage> createMessages()
@@ -431,7 +429,7 @@ In this section, you add code to retrieve messages from the queue.
431429
### [Passwordless (Recommended)](#tab/passwordless)
432430

433431
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.
434-
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+
1. If you're signed under a user account that's different from the one that you added to the **Azure Service Bus Data Owner** role, follow these steps. Otherwise, move on to run the Jar file in the next step.
435433
436434
1. [Install Azure CLI](/cli/azure/install-azure-cli-windows) on your machine.
437435
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.
@@ -478,11 +476,11 @@ On the **Overview** page for the Service Bus namespace in the Azure portal, you
478476
479477
:::image type="content" source="./media/service-bus-java-how-to-use-queues/overview-incoming-outgoing-messages.png" alt-text="Screenshot shows the incoming and outgoing message count." lightbox="./media/service-bus-java-how-to-use-queues/overview-incoming-outgoing-messages.png":::
480478
481-
Select the queue on this **Overview** page to navigate to the **Service Bus Queue** page. You see the **incoming** and **outgoing** message count on this page too. You also see other information such as the **current size** of the queue, **maximum size**, **active message count**, and so on.
479+
Select the queue on this **Overview** page to navigate to the **Service Bus Queue** page. You see the **incoming** and **outgoing** message count on this page too. You also see other information such as the **current size** of the queue, and **maximum size**, **active message count**.
482480
483481
:::image type="content" source="./media/service-bus-java-how-to-use-queues/queue-details.png" alt-text="Screenshot shows the queue details for the messages for this queue." lightbox="./media/service-bus-java-how-to-use-queues/queue-details.png":::
484482
485-
## Next Steps
483+
## Related content
486484
487485
See the following documentation and samples:
488486

0 commit comments

Comments
 (0)