Just use java code to build a custom Predicate that computes this, and
use it with the onWhen on the interceptor.


On Wed, Mar 23, 2011 at 9:56 AM, JacobS <jacobhame...@gmail.com> wrote:
> Looks like interceptFrom could be the right way to go.
> How can I add a predicate to the interceptFrom that will intercept according
> to a header and the routeID ?
> Something like this:
>
>
>
>
>                ${in.getExchange.getFromRouteId} == 
> ${in.header.interceptFromRouteID} />
>
>
>
> except I am getting 'Illegal syntax: in.getExchange.getFromRouteId'
> excpetion.
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Add-a-Processor-to-a-route-at-runtime-tp4257724p4258424.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



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

Reply via email to