Skip to content

Commit a258ed0

Browse files
committed
Make important notes
1 parent 7ab4d7d commit a258ed0

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ Update the `pom.xml` file to add a dependency to the Azure Service Bus package.
111111
static String queueName = "<QUEUE NAME>";
112112
```
113113

114-
Replace `<QUEUE NAME>` with the name of the queue.
114+
> [!IMPORTANT]
115+
> Replace `<QUEUE NAME>` with the name of the queue.
115116

116117
### [Connection String](#tab/connection-string)
117118

@@ -120,7 +121,8 @@ Update the `pom.xml` file to add a dependency to the Azure Service Bus package.
120121
static String queueName = "<QUEUE NAME>";
121122
```
122123

123-
Replace `<NAMESPACE CONNECTION STRING>` with the connection string to your Service Bus namespace. And, replace `<QUEUE NAME>` with the name of the queue.
124+
> [!IMPORTANT]
125+
> Replace `<NAMESPACE CONNECTION STRING>` with the connection string to your Service Bus namespace, and `<QUEUE NAME>` with the name of the queue.
124126

125127
---
126128
3. Add a method named `sendMessage` in the class to send one message to the queue.

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

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ Update the `pom.xml` file to add a dependency to the Azure Service Bus package.
112112
static String subName = "<SUBSCRIPTION NAME>";
113113
```
114114

115-
Replace `<TOPIC NAME>` with the name of the topic, and replace `<SUBSCRIPTION NAME>` with the name of the topic's subscription.
115+
> [!IMPORTANT]
116+
> Replace `<TOPIC NAME>` with the name of the topic, and `<SUBSCRIPTION NAME>` with the name of the topic's subscription.
116117
117118
### [Connection String](#tab/connection-string)
118119
@@ -122,16 +123,9 @@ Update the `pom.xml` file to add a dependency to the Azure Service Bus package.
122123
static String subName = "<SUBSCRIPTION NAME>";
123124
```
124125
125-
Replace `<NAMESPACE CONNECTION STRING>` with the connection string to your Service Bus namespace. Replace `<TOPIC NAME>` with the name of the topic, and replace `<SUBSCRIPTION NAME>` with the name of the topic's subscription.
126+
> [!IMPORTANT]
127+
> Replace `<NAMESPACE CONNECTION STRING>` with the connection string to your Service Bus namespace. Replace `<TOPIC NAME>` with the name of the topic, and `<SUBSCRIPTION NAME>` with the name of the topic's subscription.
126128
---
127-
1. In the class, define variables to hold connection string, topic name, and subscription name.
128-
129-
```java
130-
static String topicName = "<TOPIC NAME>";
131-
static String subName = "<SUBSCRIPTION NAME>";
132-
```
133-
134-
Replace `<NAMESPACE CONNECTION STRING>` with the connection string to your Service Bus namespace. Replace `<TOPIC NAME>` with the name of the topic, and replace `<SUBSCRIPTION NAME>` with the name of the topic's subscription.
135129
3. Add a method named `sendMessage` in the class to send one message to the topic.
136130

137131
### [Passwordless (Recommended)](#tab/passwordless)

0 commit comments

Comments
 (0)