@@ -29,14 +29,14 @@ The following code example demonstrates how to connect to Azure Service Bus usin
29
29
## [ .NET] ( #tab/dotnet )
30
30
31
31
``` csharp
32
- await using var client = new ServiceBusClient (" <NAMESPACE- CONNECTION-STRING>" );
32
+ await using var client = new ServiceBusClient (" <CONNECTION-STRING>" );
33
33
```
34
34
35
35
## [ Java] ( #tab/java )
36
36
37
37
``` java
38
38
ServiceBusSenderClient client = new ServiceBusClientBuilder ()
39
- .connectionString(" <NAMESPACE- CONNECTION-STRING>" )
39
+ .connectionString(" <CONNECTION-STRING>" )
40
40
.sender()
41
41
.queueName(" <QUEUE-NAME>" )
42
42
.buildClient();
@@ -46,21 +46,21 @@ ServiceBusSenderClient client = new ServiceBusClientBuilder()
46
46
47
47
``` java
48
48
ConnectionFactory factory = new ServiceBusJmsConnectionFactory (
49
- " <NAMESPACE- CONNECTION-STRING>" ,
49
+ " <CONNECTION-STRING>" ,
50
50
new ServiceBusJmsConnectionFactorySettings ());
51
51
```
52
52
53
53
## [ Node.js] ( #tab/nodejs )
54
54
55
55
``` nodejs
56
- const client = new ServiceBusClient("<NAMESPACE- CONNECTION-STRING>");
56
+ const client = new ServiceBusClient("<CONNECTION-STRING>");
57
57
```
58
58
59
59
## [ Python] ( #tab/python )
60
60
61
61
``` python
62
62
client = ServiceBusClient(
63
- fully_qualified_namespace = " <NAMESPACE- CONNECTION-STRING>"
63
+ fully_qualified_namespace = " <CONNECTION-STRING>"
64
64
)
65
65
```
66
66
@@ -129,9 +129,9 @@ Next, update your code to use passwordless connections.
129
129
DefaultAzureCredential credential = new DefaultAzureCredentialBuilder ()
130
130
.build();
131
131
132
- // TODO: Update the <NAMESPACE-CONNECTION-STRING > placeholder.
132
+ // TODO: Update the <SERVICE-BUS-NAMESPACE-NAME > placeholder.
133
133
ServiceBusSenderClient client = new ServiceBusClientBuilder ()
134
- .credential(" <NAMESPACE-CONNECTION-STRING> " , credential)
134
+ .credential(" <SERVICE-BUS-NAMESPACE-NAME>.servicebus.windows.net " , credential)
135
135
.sender()
136
136
.queueName(" <QUEUE-NAME>" )
137
137
.buildClient();
@@ -162,10 +162,10 @@ Next, update your code to use passwordless connections.
162
162
DefaultAzureCredential credential = new DefaultAzureCredentialBuilder ()
163
163
.build();
164
164
165
- // TODO: Replace the "<NAMESPACE-CONNECTION-STRING >" placeholder.
165
+ // TODO: Replace the "<SERVICE-BUS-NAMESPACE-NAME >" placeholder.
166
166
ConnectionFactory factory = new ServiceBusJmsConnectionFactory (
167
167
credential,
168
- " <NAMESPACE-CONNECTION-STRING> " ,
168
+ " <SERVICE-BUS-NAMESPACE-NAME>.servicebus.windows.net " ,
169
169
new ServiceBusJmsConnectionFactorySettings ());
170
170
```
171
171
@@ -188,9 +188,9 @@ Next, update your code to use passwordless connections.
188
188
` ` ` nodejs
189
189
const credential = new DefaultAzureCredential ();
190
190
191
- // TODO: Update the < NAMESPACE-CONNECTION-STRING > placeholder.
191
+ // TODO: Update the < SERVICE-BUS-NAMESPACE-NAME > placeholder.
192
192
const client = new ServiceBusClient(
193
- " <NAMESPACE-CONNECTION-STRING> " ,
193
+ " <SERVICE-BUS-NAMESPACE-NAME>.servicebus.windows.net " ,
194
194
credential
195
195
);
196
196
` ` `
@@ -214,9 +214,9 @@ Next, update your code to use passwordless connections.
214
214
` ` ` python
215
215
credential = DefaultAzureCredential ()
216
216
217
- # TODO: Update the <NAMESPACE-CONNECTION-STRING > placeholder.
217
+ # TODO: Update the <SERVICE-BUS-NAMESPACE-NAME > placeholder.
218
218
client = ServiceBusClient(
219
- fully_qualified_namespace = " <NAMESPACE-CONNECTION-STRING> " ,
219
+ fully_qualified_namespace = " <SERVICE-BUS-NAMESPACE-NAME>.servicebus.windows.net " ,
220
220
credential = credential
221
221
)
222
222
` ` `
0 commit comments