Overview
MuleSoft provides the most widely used integration platform to connect any application, data service or an API, across the cloud and on-premise continuum. Microsoft Azure is a cloud-based data-storage infrastructure that is accessible to the user programmatically via a MuleSoft ‘Microsoft Service Bus’ connector. The Microsoft Service Bus Mule connector allows developers to access any amount of data, at any time and from anywhere on the web. With connectivity to the Microsoft Azure API, users can interface Azure to store objects, download and use data with other Azure services. Applications can also be built for which internet storage is required - all from within MuleSoft Anypoint Platform.
Instant access to the Microsoft Azure API enables businesses to create seamless integration between Azure and other databases, CMS applications such as Drupal, and CRM applications such as Salesforce.
Prerequisites
Microsoft Azure Account
To complete this sample, we need an Azure account. We can activate the MSDN subscriber benefits or sign up for a free trial.
Creating Microsoft Azure Namespace
To begin using Service Bus topics and subscriptions in Azure, firstly we must create a service namespace. A service namespace provides a scoping container for addressing Service Bus resources within the application.
To create a service namespace:
Microsoft Azure Shared Access Name & Key
Click Connection Information. In the Access connection information dialog, find the connection string that contains the SAS key and key name. Make a note of these values, as we will use this information later to perform operations with the namespace
Mule Anypoint Microsoft Service Bus Connector
Send to Queues, Topics and Event Hubs with support of AMQP message properties and header, including custom properties.
The connector supports the following Service Bus versions:
Configure Mule Anypoint Microsoft Service Bus connector with the following settings -
Prior to the execution of a processor, the connector will attempt to lookup for an already established connection and if one doesn't exist, it will create one. This lookup mechanism is done in the connection pool via the use of connection variables declared as keys.
Reconnection Strategy: Reconnection Strategies specify on how a connector behaves when the connection fails. We can control the attempts by Mule to reconnect using several criteria -
With a reconnection strategy, the behaviour of a failed connection can be controlled in a much better way by configuring it, for example, to re-attempt the connection only once every 15 minutes, and to give up after 30 attempts. An automatic notification can be sent to the IT administrator whenever this reconnection strategy goes into effect. A strategy can also be defined which attempts to reconnect only during business hours. Such a setting can prove useful if the server is frequently shut down for maintenance.
Mule ESB – The best way to Integrate Microsoft Azure
The below Mule application is used to get the list of queues created under Azure cloud using Mule Anypoint Microsoft Service Bus connector.
Steps to be followed for integrating 'Microsoft Azure' with MuleSoft Applications:
Running the Application
We are now ready to run the project! First, let us test run the application from Studio:
Queue list under Azure
Queue list from Mule output
Benefits
Author: Mr. Sanjeet Pandey is a Masters of Computer Application (MCA) graduate having 4+ years of experience as a Technical Specialist with Coforge. He has varied experience in ESB’s like Mule, JCaps. Sanjeet loves dreaming up new ideas, movies & music, photography & travelling and developing web projects. To know more about Sanjeet log on to www.sanjeetpandey.com\
If you would like to find out more about how Systems Integration could help you make the most out of your current infrastructure while enabling you to open your digital horizons, do give us a call at +44 (0)203 475 7980 or email us at Salesforce@coforge.com
Other useful links:
Integration with Twitter using Mule ESB
Integration with LinkedIn using Mule ESB
Integration with Dropbox using Mule ESB