In this blog, we will see how to integrate Solace PubSub + with MuleSoft. Before we get into details, let’s learn a little bit about Solace PubSub platform, its capabilities, how to set it up and finally how to integrate with MuleSoft AnyPoint Platform to amplify its capabilities. So, Let’s begin.
There are two editions Standard and Enterprise. The Standard Edition is a free enterprise-grade substitute to open source with integrated high availability and disaster recovery. PubSub+ Enterprise Edition has additional performance and includes support.
There are three options to setup Solace PubSub
Using Cloud services like AWS, Azure and GCP
Using Docker container
This document demonstrates integration using option 2 (Using Docker container). Follow some simple steps defined below to setup Solace PubSub
docker run -d -p 8080:8080 -p 55555:55555 -p:80:8008 -p:1883:1883 -p:8000:8000 -p:5672:5672 -p:9000:9000 -p:2222:2222 --shm-size=2g --env username_admin_globalaccesslevel=admin --env username_admin_password=admin --name=solace solace/solace-pubsub-standard
Solace can be integrated using different protocols as mentioned in the beginning of this document, however, this document elaborates integration using JMS and REST. JMS will be used to demonstrate a consumer, while REST will be used demonstrating a publisher.
Follow the steps below to create publisher and consumer service using MuleSoft Anypoint platform
This document describes creating a consumer using JMS connector in MuleSoft that’s why it is recommended to explore JMS JNDI section from Solace PubSub web console
Note: Make sure to click configure button and install sol-jms maven library