Hi,
I have created a producer interface to send messages to specified endpoint.
Can I add a header to each message I send from my producer ? I would like to
get an example for the same.
Is it possible to add an annotation in my producer like the below mentioned
? Will camel inject the property or header, when I am calling this method to
send a message ?
public interface Producer {
void send(@Header(value="foo") String foo, Foo foo);
}
If camel injects header here, how can I check it using filter in my route
configuration with spring ?
Thanks in advance.
-SK
--
View this message in context:
http://camel.465427.n5.nabble.com/Add-header-for-each-message-tp2651224p2651224.html
Sent from the Camel - Users mailing list archive at Nabble.com.