Or you could use a Java method call for the predicate evaluation, if
the scripting language expression evaluation is slow...
http://activemq.apache.org/camel/bean-language.html


2008/6/13 Gert Vanthienen <[EMAIL PROTECTED]>:
> 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.
>>
>>
>
>



-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Reply via email to