Configuring the components - 7.2

JMS (Mediation)

author
Talend Documentation Team
EnrichVersion
7.2
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Messaging components (Mediation) > JMS components (Mediation)
Data Quality and Preparation > Third-party systems > Messaging components (Mediation) > JMS components (Mediation)
Design and Development > Third-party systems > Messaging components (Mediation) > JMS components (Mediation)
EnrichPlatform
Talend Studio

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.