On Tue, Dec 16, 2008 at 4:04 PM, Fush <rikard.erik...@gmail.com> wrote: > > I'll try the filter. But I want my messages to be dropped if the predicate is > true. If beanTwo returns false, only then should the route continue. Is that > possible to express in the current DSL, or would I have to alter the method > called? Yeah you can probably use a predicate something like this:
<filter> <predicate> <methodCall ..../> <isEqualTo value="false"/> </predicate> </filter> Using the predicate you have the usual equal, not equal, null, not null, regexp etc. to test with. > > > Claus Ibsen-2 wrote: >> >> On Tue, Dec 16, 2008 at 3:16 PM, Fush <rikard.erik...@gmail.com> wrote: >> Yeah its more like the filter EIP and maybe this one works ;) >> http://activemq.apache.org/camel/message-filter.html >> >> Any messages which the filter predicate returns false will be dropped. >> > > -- > View this message in context: > http://www.nabble.com/Will-onException-handle-exceptions-thrown-from-%27when%27-clause--tp21033017s22882p21034693.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- /Claus Ibsen Apache Camel Committer Blog: http://davsclaus.blogspot.com/