Configuring the components - 8.0

Data Service and Routing Examples

Version
8.0
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development > Designing Routes
Design and Development > Designing Services
Last publication date
2023-12-08

Procedure

  1. Double-click the cMQConnectionFactory component to display its Basic settings view in the Component tab.
    Basic settings view.
  2. From the MQ Server list, select ActiveMQ. In the Broker URI field, type in the URI of the local ActiveMQ server, "tcp://localhost:61616" in this use case.
  3. Double-click the cJMS component labeled Input to display its Basic settings view.
    Basic settings view.
  4. 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, "IN" in this use case. From the list of ConnectionFactory, select the ActiveMQ connection factory that you have just configured.
  5. Repeat this operation to configure the cJMS component labeled Output with the same ConnectionFactory and name the destination JMS queue OUT.
    Basic settings view.
  6. Double-click the cSOAP component to display its Basic settings view.
    Basic settings view.
  7. In the Address field, type in the service endpoint URL of the web service that we have created, http://localhost:8200/airport.service in this example. From the Type list, select wsdlURL. In the WSDL File field, type in the path to the WSDL file, http://localhost:8200/airport.service?wsdl in this example. From the Dataformat list, select PAYLOAD.
  8. Double-click the cProcessor component to display its Basic settings view.
    Basic settings view.
  9. In the Code area, customize the code as shown below to display the message body on the Run console.
    System.out.println("The output message is: "+
    exchange.getIn().getBody(String.class));