Configuring the components - Cloud - 8.0

JMS (Mediation)

Version
Cloud
8.0
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
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)
Last publication date
2024-03-06

Procedure

  1. Double-click the cMQConnectionFactory component to display its Basic settings view in the Component tab.
  2. From the MQ Server list, select an MQ server. In this use case, the default ActiveMQ server is used to handle the messages.
    In the Broker URI field, type in the URI of the message broker. Here the default URI "vm://localhost?broker.persistent=false" is used.
  3. In the message producer sub-route, double-click the cFile component to display its Basic settings view.
  4. Define the properties of the cFile component.
    In this use case, simply specify the path to the folder that holds the source file to be sent as electronic message, and leave the other parameters as they are.
  5. Double-click the cJMS component labeled Message_producer to display its Basic settings view.
  6. 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, "queue.hello" in this use case.
    Double-click the [...] button next to ConnectionFactory. Select the MQ connection factory that you have just configured in the dialog box and click OK.
  7. Switch to the message consumer sub-route, and double-click the cJMS component labeled Message_consumer to display its Basic settings view.
  8. Configure the message consumer using exactly the same parameters as in the message producer.
  9. Double-click the cProcessor component to display its Basic settings view.
  10. In the Code area, customize the code as shown below to display the file names of the consumed messages on the Run console.
    System.out.println("Message consumed: "+
    exchange.getIn().getHeader("CamelFileName"));
  11. Press Ctrl+S to save your Routes.