camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: How to send ack and then resume route with original message
Date Tue, 08 May 2012 07:10:56 GMT

Check out the wire tap EIP, something alike

from mina
  wire tap -> direct:foo
  prepare ack

from direct foo
  process message

On Tue, May 8, 2012 at 12:38 AM, barry_allen <> wrote:
> Hello. I have a tcp endpoint defined with mina in which I receive a message
> from a server. I am constructing an acknowledgement message to let the
> sending server know that the message is received. However, I am unable to
> preserve the original message that was received so that it is available for
> processing on the remainder of the route. To summarize, I am:
> 1.) Receiving message
> 2.) Creating ack message, and setting it on exchange.getOut.body(ackMessage)
> to send back to the server
> 3.) I would like to process the original message from exchange.getIn.body(),
> but then the input message becomes the acknowledgement message that I had
> created for all subsequent steps in the route, instead of being the original
> message received.
> I have sync=true&amp;exchangePattern=InOut set as options on my mina url,
> and I am not using JMS queues. So how do I receive a message, send back a
> custom ack message to the server, and then resume processing on the route
> with the original message in the exchange?
> Thanks
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
CamelOne 2012 Conference, May 15-16, 2012:
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message