2 Replies Latest reply on Nov 2, 2011 5:35 AM by sandy2011

    Camel :Ack failed Mina Listener if the publish endpoint is JMS OK  if FILE

    sandy2011 Newbie

       

      Hi

      I have two Camel Routes that consumes HL7 messages from mina endpoint.

      Route 1 publishes to a file endpoint and sends ACk HL7 Message to mina endpoint. The response is sent successfully.

       

      The Route2 publishes the HL7 message to a JMS Queue endpoint and I have set the ACK message. But the response is not sent to Mina endpoint.

       

      Can you please advice why Route2 does not send the Ack to Mina Endpoint?

       

      Route1 :Sends Response Successfully

      -


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

      <route>

       

       

      <from uri="mina:tcp://xxx.xxx.xxx.xxx:61610?sync=true&codec=#hl7codec"/>

       

       

      <to uri="file:D:\ServiceMixSandpit\datatransfer\ActiveMqRouteClustered\output"/>

       

       

      <setBody><constant>MSA|AA|</constant></setBody>

       

       

      </route>

       

       

      </camelContext>

       

      Route 2: Response failed to send

      -


       

       

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

      <route>

       

       

      <from uri="mina:tcp://xxx.xxx.xxx.xxx:61610?sync=true&codec=#hl7codec"/>

       

       

      <to uri="jms:incomingOrdersTen"/>

       

       

      <setBody><constant>MSA|AA|</constant></setBody>

       

       

      </route>

       

       

      </camelContext>