Configuring the components - 7.0

Data Service and Routing Examples

author
Talend Documentation Team
EnrichVersion
7.0
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
Design and Development > Designing Routes
Design and Development > Designing Services
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. 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.
  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.
  6. Double-click the cSOAP component to display its 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.
  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));