Hello All, I have a bean that will return a boolean of true or false. When the value is false, I want to go in a camel filter. Filter looks for 'true', like below:
<camel:filter> <camel:method bean="accessControlProcessor" method="authorize" /> <camel:log message="access control returned true"/> </camel:filter> However, when this method returns false, I want to do something specific like <camel:filter> <camel:method bean="accessControlProcessor" method="authorize" /> <camel:log message="Not authorized"/> <camel:stop/> </camel:filter> I now I can set a header in my authorize method and run a camel choice on that header. However, is there a way to do this using the simple language or the content based router? I would rather not disrupt the processor with camel specific code. Thanks, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Filter-Bean-when-return-value-is-false-tp5752457.html Sent from the Camel - Users mailing list archive at Nabble.com.