I am assuming that unless I set the body of the exchange to what is processed
by the bean called within the interceptor, the exchange should not change.
Is this not true?
All my bean does is return and object. But it's affecting the exchange.
/ public MarsTracerEntity traceExchange(Exchange exchange) throws
Exception
{
MarsTracerEntity entity = new MarsTracerEntity();
if(null != exchange.getIn().getHeader("CamelFileNameOnly"))
entity.setInputFileName((String)exchange.getIn().getHeader("CamelFileNameOnly"));
if(null != exchange.getIn().getHeader("CamelBatchSize"))
entity.setBatchSize((Integer)exchange.getIn().getHeader("CamelBatchSize"));
if(null != exchange.getIn().getHeader("breadcrumbId"))
entity.setOutputFileName((String)exchange.getIn().getHeader("breadcrumbId"));
log.info("InputFilename 5555 : "+entity.getInputFileName());
log.info("outputFilename 2222 : "+entity.getOutputFileName());
log.info("Batch 1111 : "+entity.getBatchSize());
return entity;
}/
--
View this message in context:
http://camel.465427.n5.nabble.com/Intercept-issue-need-help-tp5080816p5081107.html
Sent from the Camel - Users mailing list archive at Nabble.com.