...
- Start the MQTT-supported server. (E.g. Mosquitto)
- Execute the following command to prepare Mosquitto server for the launch:
ln -sfv /usr/local/opt/mosquitto/*.plist ~/Library/LaunchAgents
- Execute the following command to run the Mosquitto server:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mosquitto.plist
- Execute the following command to prepare Mosquitto server for the launch:
Open a new Terminal and start the ESB profile of WSO2 EI. For instructions, see Starting the ESB Profile.
Log in to the Management Console, and click Main → Inbound Endpoints → Add inbound Endpoint.
Enter a name for the Inbound Endpoint, and click Next.
Enter the following details, and click Save.
Click Main → Sequences → Add Sequence.
Enter the name of the Sequence as TestIn, construct the following sequence, and click Save & Close.
info.
Construct the following sequence.
Expand title Follow the steps below to add the mediators to the sequence. Add a log mediator as shown below.
Change the Log Level to FULL
in the Log Mediator, and click Update.
Add a property mediator as shown below.
Click Save & Close.
Executing the sample
In a new Terminal window, execute the following command to publish a message using the Mosquitto publisher.
...
Start the Broker profile of WSO2 EI. For instructions, see Starting the Message Broker profile.
Start the ESB profile of WSO2 EI. For instructions, see Starting the ESB Profile.
Log in to the Management Console, and click Main → Inbound Endpoints → Add inbound Endpoint.
Enter a name for the Inbound Endpoint, and click Next.
Enter the following details, and click Save.
Tip When creating the below Inbound Endpoint, specify the value of mqtt.server.port as 1886 because the Broker profile starts with a default port offset of 3 in WSO2 EI.
Click Main → Sequences → Add Sequence.
Enter the name of the Sequence as TestIn, construct the following sequence, and click Save & Close.
info.
Construct the following sequence.
Expand title Follow the steps below to add the mediators to the sequence. Add a log mediator as shown below.
Change the Log Level to FULL
in the Log Mediator, and click Update.
Add a property mediator as shown below.
Click Save & Close.
Executing the sample
In a new Terminal window, execute the following command to publish a message using the Mosquitto publisher.
...