Configuring the components - 7.3

MQTT (Mediation)

Version
7.3
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Messaging components (Mediation) > MQTT components (Mediation)
Data Quality and Preparation > Third-party systems > Messaging components (Mediation) > MQTT components (Mediation)
Design and Development > Third-party systems > Messaging components (Mediation) > MQTT components (Mediation)
Last publication date
2024-01-17

Procedure

  1. Double-click the cMQConnectionFactory component to display its Basic settings view in the Component tab.
  2. From the MQ Server list, select MQTT to handle messages.
    In the Host Name field, keep the default value "127.0.0.1" as the local ActiveMQ server is used as the message broker in this example.
    In the Port field, keep the default 1883.
    Keep the default settings of the other options.
  3. Double-click the cTimer component to open its Basic settings view in the Component tab.
  4. In the Repeat field, enter 5 to generate the message exchange five times. Keep the default settings of the other options.
  5. Double-click the cSetBody component to open its Basic settings view in the Component tab.
  6. Select SIMPLE from the Language list box and type in "Hello world" in the Expression field as the message body.
  7. Double-click the cMQTT component to open its Basic settings view in the Component tab.
  8. In the ConnectionFactory field, click [...] and select the MQ connection factory that you have just configured to handle messages.
    In the Topic Name field, type in a name for the topic, for example "mytopic".
  9. Keep the default settings of the cLog component to log the message exchanges.
  10. Press Ctrl+S to save your Route.