This sample demonstrates how the MQTT connector publishes a message on a particular topic and how a MQTT client that is subscribed to that topic receives it.
- You need to have the following downloaded.
- mosquitto-1.3.4 (http://mosquitto.org/)
Building the sample
For consumer ESB
- Copy the following client libraries to the
Add the XML configuration for the inbound endpoint as follows:
For publisher ESB
Run the following command to use the mosquito publisher:
Executing the request
After you perform the required configuration changes,
- Start the ESB and the mosquito publisher.
Start the mosquitto subscriber by executing the following command:
Analyzing the output
On the console you will see the following: