Double-click the cMQConnectionFactory component to
display its Basic settings view in the
Component tab.
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.
Double-click the cJMS component labeled Input to
display its Basic settings view.
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.
Repeat this operation to configure the cJMS component
labeled Output with the same ConnectionFactory and name
the destination JMS queue OUT.
Double-click the cSOAP component to display its
Basic settings view.
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.
Double-click the cProcessor component to display its
Basic settings view.
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 – please let us know!