make sure you put your <processor> ref inside the </filter> tag...

see 
http://svn.apache.org/viewvc/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/SpringCustomPredicateTest.xml?view=markup
this example ...


jguion wrote:
> 
> Hi,
> 
> I am trying to build a custom filter using the Spring DSL. I am able to
> successfully  create it using the Java DSL using the .filter(new
> CustomPredicate())  method where CustomPredicate is a class extending the
> Predicate interface. However, I am not able to do this using the Spring
> DSL. I have tried several things but I cannot get anything to filter my
> messages.
> 
> The path right now looks something like this:
>  <from uri="vm:endpoint1" />
> <process ref="processor1" />
> <filter>
>       <method ref="CustomPredicate" method="matches"/>                        
> </filter>
> <process ref="processor2" />
> <to ref="endpoint2" />
> 
> Any suggestions on how to implement this?
> 
> Thanks
> 


-----
Ben O'Day
IT Consultant -http://benoday.blogspot.com

--
View this message in context: 
http://camel.465427.n5.nabble.com/Custom-Message-Filter-tp4346578p4346891.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to