Hi,

I' m a little bit confused about how to propagate headers received in a
camel bean ?

Here is my example. Is it correct what I do or not

    public Request createRequest(
            @Header(value = "messageType") String messageType, --> header
received
            @Header(value = "CamelFileNameOnly") String fileName, --> header
received
            @Body String body, Exchange exchange) {

        // add the request object to the exchange
        exchange.getOut().setBody(request); --> QUESTION : Is it required or
the return statement is enough ?
        exchange.getOut().setHeader("", ); --> QUESTION : Is it required or
the headers received will be propagated to the OUT automatically


        return request;
    }

Regards,


Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com

Reply via email to