Hi You must do something wrong in your route. There is a lot of unit tests with on completion in both route and context scoped.
On Sun, Mar 28, 2010 at 7:42 AM, greenstar <[email protected]> wrote: > > > Claus Ibsen-2 wrote: >> >> The EIP patterns is a good place to look >> http://camel.apache.org/enterprise-integration-patterns.html >> >> For example the WireTap >> > > Thanks. I think onCompletion is what I'm looking for. > > However, all the examples http://camel.apache.org/oncompletion.html here > use the following form: > > from(...) > .onCompletion()...end() > .to(...) > > However when I use this form the onCompletion is never executed. However, > when I use the following form instead, it works fine. > > .from(...) > .to(...) > .onCompletion()...end() > > I am confused as to why the first form didn't work as the docs seems to > indicate it would, and I'm also confused as to why the second form did work. > > Note: I am using Camel 2.2.0. > > Thanks > -- > View this message in context: > http://old.nabble.com/Help-with-InOut-http-exchange%3A-tp28050045p28057307.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
