Re: need help with interceptor in camel 1.6.2 using custom predicate

2010-04-13 Thread Claus Ibsen
Hi I have created an example in 1.x as unit test, which is invoked 3 times. Apache SVN have issue currently with committing so I paste the test here davsclaus:(svn)camel-1x[camel-1.x:925986]/$ svn diff Index: camel-core/src/test/java/org/apache/camel/issues/CBRCustomPredicateAsFilterTest.java

Re: need help with interceptor in camel 1.6.2 using custom predicate

2010-04-12 Thread Jesse Sanford
Claus, Thanks for your help. Of course you deserve the kudos! I tried the filter method that you described with 1.6.2 and I also upgraded to 2.2 and tried again with interceptors and also with choice().when() What I am finding is this. When I use the custom predicate: public class commentFilter

Re: need help with interceptor in camel 1.6.2 using custom predicate

2010-04-12 Thread Jesse Sanford
FYI Here is my routeConfigurator class. You can see from the commented out sections in the configure method that I have tried a lot of different dsl configurations. public class commentRoute extends RouteBuilder { private Predicate commentFilter; @Override public void configure(){

Re: need help with interceptor in camel 1.6.2 using custom predicate

2010-04-12 Thread Jesse Sanford
I should mention that I am using spring 2.5.x On Mon, Apr 12, 2010 at 6:30 PM, Jesse Sanford jessesanf...@gmail.comwrote: FYI Here is my routeConfigurator class. You can see from the commented out sections in the configure method that I have tried a lot of different dsl configurations.

Re: need help with interceptor in camel 1.6.2 using custom predicate

2010-04-11 Thread Claus Ibsen
Hi Jesse btw thanks for the kudo. The interceptors in Camel 1.x is not working super duper. And hence why they have been overhauled in the 2.0 onwards, which would allow you to do what you want. I suggest to search in the camel-core src/test/java directory for any intercept unit tests and see