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:
- Download the Qpid JMS client library from Qpid JMS - Apache Qpid™
- Add all the. jars in B2Bi server - <shareddir>/local_te/jars folder
- 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
- 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]