Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

  • axis2-transport-mqtt-1.0.0.jar
  • mqtt-client-0.4.0.jar
  • mqtt-connector-1.0.0.zip
  • mosquitto-1.3.4.4 (http://mosquitto.org/)

Building the Configuration

...

Download the following client libraries to <ESB_HOME>/repository/components/lib directory.

  • axis2-transport-mqtt-1.0.0.jar
  • mqtt-client-0.4.0.jar

Enable the transport receiver and sender in <ESB_HOME>/repository/conf/axis2

Code Block
languagexml
titleTransport Receiver and Sender
<transportreceiver class="org.apache.axis2.transport.mqtt.MqttListener" name="mqtt">
        <parameter locked="false" name="mqttConFactory">
                <parameter locked="false" name="mqtt.server.host.name">localhost</parameter>
                            <parameter name="mqtt.connection.factory">mqttConFactory</parameter>
                <parameter locked="false" name="mqtt.server.port">1883</parameter>
                <parameter locked="false" name="mqtt.topic.name">esb.test2</parameter>
        </parameter>
    </transportreceiver>
<transportsender class="org.apache.axis2.transport.mqtt.MqttSender" name="mqtt"/>

...