Skip to main content
Support

KB Article #189160

Microsoft Azure Service Bus as a JMS exchange

Requirement:

Publish and/or retrieve messages to and from Microsoft Azure Service Bus resources to exchange messages with Axway B2Bi

Solution:

  1. Download the Qpid JMS client library from Qpid JMS - Apache Qpid™
  2. Add all the. jars in B2Bi server - <shareddir>/local_te/jars folder
  3. Obtain the Azure Service Bus queue connection details

- From Microsoft Azure Portal, navigate to the Service Bus Namespace, and select Queues,
- A list of the available resources displayed. Select the one that will be integrated with Axway B2Bi application
- Select “Shared access policies” from the newly created queue
- Create or open a SAS Policy
- Note the Policy Name (UserName), Primary Key values (Password), Queue name (physicalName), JNDI factory,JNDI connection URL

  1. Create a local properties file containing the connection details for the Azure Service Bus resources as shown below

# Set the InitialContextFactory class to use
java.naming.factory.initial = org.apache.qpid.jms.jndi.JmsInitialContextFactory

# Register a ConnectionFactory in JNDI using the form:
connectionfactory.[jndiName_connectionfactory] = amqps://{namespace}.servicebus.windows.net

# Register some resource in JNDI using the form:
queue.[jndiName_Queue] = [physicalName]

  1. Add the jndi.properties in <shareddir>/local_te/jars folder
  2. Restart B2Bi service
  3. Create Application Pickup and Application Delivery (choose JMS protocol) in Axway WEBU