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.
    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));

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!