On Tue, May 8, 2012 at 3:45 PM, barry_allen <coldgint...@gmail.com> wrote: > I apologize, but I'm pretty new to Camel, and I don't quite understand. On > the wiretap tag in spring, I have to make a call to the bean that creates > the ack, but I wouldn't send it yet? Where is the ack message that I created > in the bean stored? When do I send it? And then where does the original > message become available again after sending the ack? >
Its in the original route (eg the from mina) where you have to build the ACK message. Basically whatever the message "contains" at the *end* of the route, is what the mina consumer will send back as the message. In your case that is an ACK message you need to construct yourself. On the wire tap, you route in another thread, the incoming message from mina, where you can do custom processing that will not influence the mina route. > I have: > > <endpoint id="ack-create" uri="bean:ack?method=createAck"/> > > ... > > <route id="my-route"> > <from ref="my-mina-tcp-in"/> > <wireTap uri="direct:createAck" ref="ack-create"/> > > <from uri="direct:createAck"/> > <to uri="bean:ack?method=sendAck" /> > > ... > </route> > > Thank you very much. I appreciate your help. > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-send-ack-and-then-resume-route-with-original-message-tp5692336p5694451.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/