Skip to main content Skip to complementary content

Configuring the components

Procedure

  1. Double-click the cMQTTConnectionFactory component to display its Basic settings view in the Component tab.
  2. From the MQ Server list, select RabbitMQ to handle messages. 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 1 to generate a message exchange. 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 Constant from the Language list box and type in "Hello World!" in the Expression field as the message body.
  7. Double-click the first cRabbitMQ component to open its Basic settings view in the Component tab.
  8. In the Connection list, select the cMQTTConnectionFactory component that you just configured to handle messages.
    In the Exchange name field, type in the name of the exchange that the message will be send to, for example "MyExchange".
    In the Routing key field, enter the routing key value "log.test".
  9. Double-click the second cRabbitMQ component to open its Basic settings view in the Component tab.
  10. In the Connection list, select the cMQTTConnectionFactory component.
    In the Exchange name field, type in the name of the exchange that the consumed message queue will be bound to, "MyExchange" in this example.
    In the Exchange type list, select topic.
    In the Routing key field, enter "log.#".
    In the Queue names field, enter "test.queue".
  11. Keep the default settings of the cLog component to log the message exchanges.
  12. Press Ctrl+S to save your Route.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!