camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvahdat <>
Subject Re: Passing Header / Properties to Bean
Date Tue, 20 Dec 2011 15:43:03 GMT
> Hi All,
> I am using wireTap to log the header / properties details.
> I also want to make sure I do not copy the whole body of the message as
> that would cause memory related issues when dealing with large number of
> huge input files.

> I am trying to understand the behind the scene work of Camel.

> I tried the following (Which did give me the headers). Will the below
> implementation still copy the whole exchange or just the Headers.

There will be no copy of any kind for the whole exchange or the headers,
your testIntercept() method gets just invoked with the value of the Map of
the inbound message headers.

> Also Please let me know how I could pass the Exchange Properties in a
> similar way.

Take a look at

> <route>
>     <from
> uri="file:C:\\camelProject\\data\\inbox\\mars?move=C:\\camelProject\\data\\inbox\\bkp"/>
>     <wireTap uri="bean:testBean"/>
>     <to uri="stream:out"/>
> </route>

>         public void testIntercept(@Headers Map<String, Object> headers){
>       "Reached Intercept: "+headers);
>         }
> Thanks & regards,
> Ebe 

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message