Procedure
-
Double-click the cMQConnectionFactory component to
display its Basic settings view in the
Component tab.
- From the MQ Server list, select AMQP 1.0 to handle messages. Keep the default settings of the other options.
-
Double-click the cTimer component to open its Basic settings view in the Component tab.
- In the Repeat field, enter 5 to generate the message exchange five times. Keep the default settings of the other options.
-
Double-click the cSetBody component to
open its Basic settings view in the
Component tab.
- Select SIMPLE from the Language drop-down list and type in "Hello world" in the Expression field as the message body.
-
Double-click the cAMQP component to open its Basic settings view in the Component tab.
-
From the Type list, select queue or topic to send the
messages to a JMS queue or topic. In this use case, queue is used.
In the Destination field, type in a name for the queue, for example "myqueue".In the ConnectionFactory field, click [...] and select the MQ connection factory that you have just configured to handle messages.
-
Keep the default settings of the cLog component to
log the message exchanges.
- Press Ctrl+S to save your Route.