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
> - Replace `NAMESPACENAME` with the name of your Service Bus namespace.
134
-
> - This sample uses `AZURE_PUBLIC_CLOUD` as the authority host. For supported authority hosts, see [`AzureAuthorityHosts`](/dotnet/api/azure.identity.azureauthorityhosts)
133
+
> Replace `NAMESPACENAME` with the name of your Service Bus namespace.
135
134
136
135
```java
137
136
static void sendMessage()
138
137
{
139
138
// create a token using the default Azure credential
>-Replace `NAMESPACENAME` with the name of your ServiceBus namespace.
196
-
>-This sample uses `AZURE_PUBLIC_CLOUD` as the authority host. For supported authority hosts, see [`AzureAuthorityHosts`](/dotnet/api/azure.identity.azureauthorityhosts)
193
+
>Replace `NAMESPACENAME` with the name of your ServiceBus namespace.
197
194
198
195
199
196
```java
200
197
staticvoid sendMessageBatch()
201
198
{
202
199
// create a token using the default Azure credential
@@ -309,8 +305,6 @@ In this section, you add code to retrieve messages from the queue.
309
305
> [!IMPORTANT]
310
306
>-Replace `NAMESPACENAME` with the name of your ServiceBus namespace.
311
307
>-Replace `QueueTest` in `QueueTest::processMessage` in the code with the name of your class.
312
-
>-This sample uses `AZURE_PUBLIC_CLOUD` as the authority host. For supported authority hosts, see [`AzureAuthorityHosts`](/dotnet/api/azure.identity.azureauthorityhosts)
313
-
314
308
315
309
```java
316
310
// handles received messages
@@ -319,7 +313,6 @@ In this section, you add code to retrieve messages from the queue.
Copy file name to clipboardExpand all lines: articles/service-bus-messaging/service-bus-java-how-to-use-topics-subscriptions.md
+5-10Lines changed: 5 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,23 +124,23 @@ Update the `pom.xml` file to add a dependency to the Azure Service Bus package.
124
124
```
125
125
126
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.
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
128
128
129
+
> [!IMPORTANT]
130
+
> 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.
129
131
---
130
132
3.Add a method named `sendMessage` in the classto send one message to the topic.
> - Replace `NAMESPACENAME` with the name of your Service Bus namespace.
136
-
> - This sample uses `AZURE_PUBLIC_CLOUD` as the authority host. For supported authority hosts, see [`AzureAuthorityHosts`](/dotnet/api/azure.identity.azureauthorityhosts)
137
+
> Replace `NAMESPACENAME` with the name of your Service Bus namespace.
137
138
138
139
```java
139
140
static void sendMessage()
140
141
{
141
142
// create a token using the default Azure credential
>-Replace `NAMESPACENAME` with the name of your ServiceBus namespace.
197
-
>-This sample uses `AZURE_PUBLIC_CLOUD` as the authority host. For supported authority hosts, see [`AzureAuthorityHosts`](/dotnet/api/azure.identity.azureauthorityhosts)
198
-
196
+
>Replace `NAMESPACENAME` with the name of your ServiceBus namespace.
199
197
200
198
```java
201
199
staticvoid sendMessageBatch()
202
200
{
203
201
// create a token using the default Azure credential
@@ -309,7 +306,6 @@ In this section, you add code to retrieve messages from a subscription to the to
309
306
> [!IMPORTANT]
310
307
>-Replace `NAMESPACENAME` with the name of your ServiceBus namespace.
311
308
>-Replace `ServiceBusTopicTest` in `ServiceBusTopicTest::processMessage` in the code with the name of your class.
312
-
>-This sample uses `AZURE_PUBLIC_CLOUD` as the authority host. For supported authority hosts, see [`AzureAuthorityHosts`](/dotnet/api/azure.identity.azureauthorityhosts)
313
309
314
310
```java
315
311
// handles received messages
@@ -318,7 +314,6 @@ In this section, you add code to retrieve messages from a subscription to the to
0 commit comments