2 Replies Latest reply on Dec 3, 2014 11:11 AM by Akram KAMMOUN

    Setting up an asynchronous communication environment between the consumer and the provider of the service via a SOAP gateway

    Akram KAMMOUN Newbie

      Hello,

       

      I would like to set up an asynchronous communication environment between the consumer and the provider of the service via a SOAP gateway. In other words, I would like that the consumer invokes asynchronously a inout method, named inOutMethod, via a SOAP gateway and the response message will be delivered asynchronously.

      In this regard, I create a SOAP gateway and I relate it with a Camel component (route.xml). The logic of this route is as follows: SOAP -> hornetq queue 1 -> inOutMethod -> hornetq queue 2. Is this route ensure that the input and the output messages are asynchronous? Is there any way to test whether the exchanged messages between the consumer and the provider of the service is asynchronous?

       

      Here my route.xml:

      <routes xmlns="http://camel.apache.org/schema/spring">

          <route>

              <from uri="switchyard://ServiceTest"/>

              <setExchangePattern pattern="InOnly"/>

              <to uri="jms://testQueue?connectionFactory=#ConnectionFactory"/>

              <bean ref="ServiceTestBean" method="inOutMethod"/>

              <to uri="jms://testQueue2?connectionFactory=#ConnectionFactory"/>

          </route>

      </routes>


      Thank you for your help.