Skip to main content Skip to complementary content
Close announcements banner

Configuring the components

Procedure

  1. Double-click the cMQConnectionFactory component to display its Basic settings view in the Component tab.
  2. From the MQ Server list, select ActiveMQ to handle messages.
    In the Broker URI field, type in the URI of the local Active MQ server, "tcp://localhost:61616".
    Select the Use PooledConnectionFatory check box and keep the default settings.
  3. Double-click the quartzConsumer component to open its Basic settings view in the Component tab.
  4. In the URI field, enter the code "quartz://HelloWorld?trigger.repeatInterval=2000&trigger.repeatCount=-1" to define a timer for starting message exchanges. In this use case, we want the message to be delivered endlessly between an interval of two seconds. For more information about Quartz, see the site http://camel.apache.org/quartz.html.
  5. Click the Advanced settings view. Click at the bottom of the Dependencies list to add a row and select quartz from the drop-down list. For more information about the Quartz component, see the site http://camel.apache.org/quartz.html.
  6. Double-click the cSetBody component to open its Basic settings view in the Component tab.
  7. Select Simple from the Language list box and type in "Hello world" in the Expression field.
  8. Double-click the logMessage component to open its Basic settings view in the Component tab.
  9. In the URI field, enter "log:quartzMessage" where the message exchanges are logged.
  10. Double-click the jmsProducer component to display its Basic settings view in the Component tab.
  11. From the Type list, select queue to send the messages to a JMS queue.
    In the Destination field, type in a name for the JMS queue, "quartzTest" in this use case.
    In the ConnectionFactory field, click [...] and select the MQ connection factory that you have just configured.
  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 – let us know how we can improve!