Hi Check out the wire tap EIP, something alike http://camel.apache.org/wire-tap
from mina wire tap -> direct:foo prepare ack from direct foo process message On Tue, May 8, 2012 at 12:38 AM, barry_allen <coldgint...@gmail.com> 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&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: > http://camel.465427.n5.nabble.com/How-to-send-ack-and-then-resume-route-with-original-message-tp5692336.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/