camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Custom Message Filter
Date Thu, 28 Apr 2011 15:48:52 GMT
You need to put the stuff inside the filter tag

See the example here
http://camel.apache.org/message-filter

eg do

 <filter>
        <method ref="CustomPredicate" method="matches"/>
      <process ref="processor2" />
      <to ref="endpoint2" />
 </filter>



On Thu, Apr 28, 2011 at 4:09 PM, jguion <jguion@mitre.org> 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
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Custom-Message-Filter-tp4346578p4346578.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message