On 18/03/2008, cmoulliard <[EMAIL PROTECTED]> wrote:
>
>  The setHeader method does not accept as parameters (string, string) or
>  (string, object) but (string, expression)

Sorry - try

setHeader("Client").constant("Jack");

You could use something like

setHeader("Client").xpath("/order/customer");

if you need to use expressions etc

I've just added a setHeader(String name, String value) to avoid
further confusion.


>  The method setHeader(String, Expression) in the type
>  ProcessorType<ProcessorType> is not applicable for the arguments (String,
>  String)
>
>  What is purpose of "expression" when we want to place something in the
>  header ?

To support dynamic expressions at runtime - i.e. so based on the
Exchange / Message you get a different value.

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

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

Reply via email to