0

WSO2 MB use to have an scalable mqtt broker

http://wso2.com/library/articles/2015/10/article-using-wso2-message-broker-as-a-scalable-mqtt-broker/

now replaced by WSO2 EI 6.1.1. It is not clear to me when the broker must be provided or it is running inside the product. While some doc seems to imply the broker is already there, some other examples ask for a mosquito or wso2 mb (now unavailable) separate instalation.

https://docs.wso2.com/display/EI611/Sample+906%3A+Inbound+Endpoint+MQTT+Protocol+Sample

A simple test with a mqtt client shows that, after normal EI installation and run, there is no mqtt broker running in the configured params, 127.0.0:1883.

    <mqtt enabled="true">
        <bindAddress>0.0.0.0</bindAddress>
        <defaultConnection enabled="true" port="1883" />

Should I install a separate mqtt broker? or there is a way to run the already existent broker in the legacy MB? Thanks!

AAKato
  • 1
  • 1

1 Answers1

0

You can run the broker with WSO2 EI using the broker.sh file located at {EI_HOME}/bin directory.

Another difference to note is once you start the broker you can see the following log

Successfully connected to MQTT server on port 1886

Within WSO2 EI product, broker runs with an offset of 3. Therefore you have to use the 1886 port to connect.

if you want you can change the offset using the offset element found at {EI_HOME}/wso2/broker/conf/carbon.xml file

Hope this helps.

Asitha
  • 51
  • 3
  • is it possible save all the messages in database ? – Vivek Mar 02 '18 at 05:08
  • WSO2 message broker saves all the messages to the database irrespective of persistence flag. This is to support distributed queue functionality of the broker. – Asitha Mar 12 '18 at 05:00
  • Is there a possibility to check on the data coming in? may be for metrics? – 2437850 Jun 17 '19 at 10:45