Hi.

how to manage the TCP acknowledgment with Camel.

I have a route that receives via mina:TCP for HL7 message (MllpHl7Codec)
when the route ends, the contents of the body is returned Socket as ACK.
the route ends in the onComplete().onCompleteOnly()

if an error occurs, whithout exception treatment, camel send the exception
in the socket and causes an error.
the route ends in the onComplete().onFailed()

if I add a onException to catch the error. I can place a NACK in the body
and clear the error
the NACK is then sent into the socket but the route ends in the
onComplete().onCompleteOnly().
This makes sense because I have removed the error of the exchange.

How to Return a NACK and finish the route in the onComplete().OnFailed()?

Thank you.
A+JYT

--
View this message in context: 
http://camel.465427.n5.nabble.com/Mina-TCP-MllpHl7-NACK-and-onComplete-OnFailed-howto-tp5689190.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to