Versions Compared

Key

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

...

  1. 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
  2. Open a new Terminal and start the ESB profile of WSO2 EI. For instructions, see Starting the ESB Profile.

  3. Log in to the Management Console, and click Main → Inbound Endpoints → Add inbound Endpoint.

  4. Enter a name for the Inbound Endpoint (e.g., SampleInbound), and click Next.
    enter the inbound endpoint type

  5. Enter the following details, and click Save.

    • SequenceTestIn
    • Error Sequencefault
    • coordinationfalse
    • mqtt.connection.factorymqttConFactory
    • mqtt.server.host.namelocalhost
    • mqtt.server.port1883
    • mqtt.topic.nameesb.test

    inbound endpoint of Mosquitto method

  6. Click Main → Sequences → Add Sequence.

  7. Enter the name of the Sequence as TestIn.

  8. Construct the following sequence. 

    Expand
    titleFollow the steps below to add the mediators to the sequence.
    1. Add a log mediator as shown below.

      add log mediator
    2. Change the Log Level to FULL in the Log Mediator, and click Update.

    3. Add a property mediator as shown below.

    create the sequence

  9. Click Save & Close.

...

  1. Start the Broker profile of WSO2 EI. For instructions, see Starting the Message Broker profile.

  2. Start the ESB profile of WSO2 EI. For instructions, see Starting the ESB Profile.

  3. Log in to the Management Console, and click Main → Inbound Endpoints → Add inbound Endpoint.

  4. Enter a name for the Inbound Endpoint (e.g., SampleInbound), and click Next.
    enter the inbound endpoint type

  5. 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.

    • SequenceTestIn
    • Error Sequencefault
    • coordinationfalse
    • mqtt.connection.factorymqttConFactory
    • mqtt.server.host.namelocalhost
    • mqtt.server.port1883
    • mqtt.topic.nameesb.test

    inbound endpoint of Broker profile method

  6. Click Main → Sequences → Add Sequence.

  7. Enter the name of the Sequence as TestIn.

  8. Construct the following sequence. 

    Expand
    titleFollow the steps below to add the mediators to the sequence.
    1. Add a log mediator as shown below.

      add log mediator
    2. Change the Log Level to FULL in the Log Mediator, and click Update.

    3. Add a property mediator as shown below.


    create the sequence

  9. Click Save & Close.

...