> 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 http://camel.apache.org/parameter-binding-annotations.html > <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){ > log.info("Reached Intercept: "+headers); > } > > > Thanks & regards, > Ebe -- View this message in context: http://camel.465427.n5.nabble.com/Passing-Header-Properties-to-Bean-tp5089208p5089230.html Sent from the Camel - Users mailing list archive at Nabble.com.