Skip to content

Commit c495c63

Browse files
Acrolynx and link fixes
1 parent 1b6080c commit c495c63

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

articles/service-bus-messaging/jms-developer-guide.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.date: 02/12/2022
99

1010
This guide contains detailed information to help you succeed in communicating with Azure Service Bus using the Java Message Service (JMS) 2.0 API.
1111

12-
As a Java developer, if you are new to Azure Service Bus, please consider reading the below articles.
12+
As a Java developer, if you're new to Azure Service Bus, please consider reading the below articles.
1313

1414
| Getting started | Concepts |
1515
|----------------|-------|
@@ -58,21 +58,21 @@ To simplify connecting with Azure Service Bus, these interfaces are implemented
5858
5959
# [System Assigned Managed Identity](#tab/system-assigned-managed-identity-backed-authentication)
6060

61-
Create a [system assigned managed identity](../active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm.md) on Azure, and use this to create a `TokenCredential`.
61+
Create a [system assigned managed identity](../active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm.md) on Azure, and use this identity to create a `TokenCredential`.
6262

6363
```java
6464
TokenCredential tokenCredential = new DefaultAzureCredentialBuilder().build();
6565
```
6666

67-
The Connection factory can than be instantiated with the below parameters.-
67+
The Connection factory can then be instantiated with the below parameters.-
6868
* Token credential - Represents a credential capable of providing an OAuth token.
6969
* Connection string - the connection string for the Azure Service Bus Premium tier namespace.
70-
* ServiceBusJmsConnectionFactorySettings property bag which contains
70+
* ServiceBusJmsConnectionFactorySettings property bag, which contains
7171
* connectionIdleTimeoutMS - idle connection timeout in milliseconds.
7272
* traceFrames - boolean flag to collect AMQP trace frames for debugging.
7373
* *other configuration parameters*
7474

75-
The factory can be created as below. The connection string is a required parameter, but the additional properties are optional.
75+
The factory can be created as shown here. The connection string is a required parameter, but the other properties are optional.
7676

7777
```java
7878
String host = "<YourNamespaceName>.servicebus.windows.net";
@@ -81,23 +81,23 @@ ConnectionFactory factory = new ServiceBusJmsConnectionFactory(tokenCredential,
8181

8282
# [User Assigned Managed Identity](#tab/user-assigned-managed-identity-backed-authentication)
8383

84-
Create a [user assigned managed identity](../active-directory/managed-identities-azure-resources/how-manage-user-assigned-managed-identities.md?pivots=identity-mi-methods-azp#create-a-user-assigned-managed-identity) on Azure, and use this to create a `TokenCredential`.
84+
Create a [user assigned managed identity](../active-directory/managed-identities-azure-resources/how-manage-user-assigned-managed-identities.md?pivots=identity-mi-methods-azp#create-a-user-assigned-managed-identity) on Azure, and use this identity to create a `TokenCredential`.
8585

8686
```java
8787
TokenCredential tokenCredential = new DefaultAzureCredentialBuilder()
8888
.managedIdentityClientId("<clientIDOfUserAssignedIdentity>")
8989
.build();
9090
```
9191

92-
The Connection factory can than be instantiated with the below parameters.-
92+
The Connection factory can then be instantiated with the below parameters.-
9393
* Token credential - Represents a credential capable of providing an OAuth token.
9494
* Connection string - the connection string for the Azure Service Bus Premium tier namespace.
95-
* ServiceBusJmsConnectionFactorySettings property bag which contains
95+
* ServiceBusJmsConnectionFactorySettings property bag, which contains
9696
* connectionIdleTimeoutMS - idle connection timeout in milliseconds.
9797
* traceFrames - boolean flag to collect AMQP trace frames for debugging.
9898
* *other configuration parameters*
9999

100-
The factory can be created as below. The connection string is a required parameter, but the additional properties are optional.
100+
The factory can be created as shown here. The connection string is a required parameter, but the other properties are optional.
101101

102102
```java
103103
String host = "<YourNamespaceName>.servicebus.windows.net";
@@ -108,12 +108,12 @@ ConnectionFactory factory = new ServiceBusJmsConnectionFactory(tokenCredential,
108108

109109
The Connection factory can be instantiated with the below parameters -
110110
* Connection string - the connection string for the Azure Service Bus Premium tier namespace.
111-
* ServiceBusJmsConnectionFactorySettings property bag which contains
111+
* ServiceBusJmsConnectionFactorySettings property bag, which contains
112112
* connectionIdleTimeoutMS - idle connection timeout in milliseconds.
113113
* traceFrames - boolean flag to collect AMQP trace frames for debugging.
114114
* *other configuration parameters*
115115

116-
The factory can be created as below. The connection string is a required parameter, but the additional properties are optional.
116+
The factory can be created as shown here. The connection string is a required parameter, but the other properties are optional.
117117

118118
```java
119119
ConnectionFactory factory = new ServiceBusJmsConnectionFactory(SERVICE_BUS_CONNECTION_STRING, null);
@@ -129,7 +129,7 @@ Destinations map to entities in Azure Service Bus - queues (in point to point sc
129129

130130
### Connections
131131

132-
A connection encapsulates a virtual connection with a JMS provider. With Azure Service Bus,this represents a stateful connection between the application and Azure Service Bus over AMQP.
132+
A connection encapsulates a virtual connection with a JMS provider. With Azure Service Bus, this represents a stateful connection between the application and Azure Service Bus over AMQP.
133133

134134
A connection is created from the connection factory as shown below.
135135

@@ -158,7 +158,7 @@ A session can be created with any of the below modes.
158158
|**Session.DUPS_OK_ACKNOWLEDGE**|This acknowledgment mode instructs the session to lazily acknowledge the delivery of messages.|
159159
|**Session.SESSION_TRANSACTED**|This value may be passed as the argument to the method createSession(int sessionMode) on the Connection object to specify that the session should use a local transaction.|
160160

161-
When the session mode is not specified, the **Session.AUTO_ACKNOWLEDGE** is picked by default.
161+
When the session mode isn't specified, the **Session.AUTO_ACKNOWLEDGE** is picked by default.
162162

163163
### JMSContext
164164

@@ -180,13 +180,13 @@ Just like the **Session** object, the JMSContext can be created with the same ac
180180
JMSContext context = connectionFactory.createContext(JMSContext.AUTO_ACKNOWLEDGE);
181181
```
182182

183-
When the mode is not specified, the **JMSContext.AUTO_ACKNOWLEDGE** is picked by default.
183+
When the mode isn't specified, the **JMSContext.AUTO_ACKNOWLEDGE** is picked by default.
184184

185185
### JMS message producers
186186

187187
A message producer is an object that is created using a JMSContext or a Session and used for sending messages to a destination.
188188

189-
It can be created either as a stand alone object as below -
189+
It can be created either as a stand-alone object as below -
190190

191191
```java
192192
JMSProducer producer = context.createProducer();

0 commit comments

Comments
 (0)