Is there a way to set message headers from a bean?
I have a simple camel route I need to modify. The route looks like this: from(source.uri) .unmarshal() .bean(TransformMessageBean.class, "SomeMethod") .to(destination.uri) I want to add another bean method call after the unmarshaling that set's a header value without disrupting the current data flow . Does anyone know of a way to do this? I read that in apache's documentation that a bean's return value is set in the outbound message body. Is there a way to change that to a header? Thanks in advance! Certainly! One of the options available is .setHeader("headerName").method(beanInstance,