camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gert Vanthienen <gert.vanthie...@skynet.be>
Subject Re: Object Properties - specific route
Date Fri, 13 Jun 2008 13:39:32 GMT
Ovidiu,

You could try this with e.g. ognl or jxpath.  If you container object is 
in the 'in' message body, something like <ognl>request.body.part1 != 
null</ognl> should work inside a <when> clause.

Gert

Ovidius wrote:
> Hi,
>
>   I need to send each properties of an object to a specific route. 
>
>   Example : I have object CONTAINER with 2 properties : PART1 and PART2.
> Those does not represent List or Collection.
>
>   I receive a CONTAINER's instance. 
>   If PART1 is not null i need to send it to  ROUTE1.
>   If PART2 is not null i need to send it to  ROUTE2.
>
>   I need to do this in XML.
>
>   Wich is the best approach?
>
> Thanks,
>   Ovidiu.
>   
>
>   
>   


Mime
View raw message