Yep you can store anything you like. The type is java.lang.Object.
If you use the DSL you can do
.setHeader("myHeader", constant(new MyObject())). ...
On Wed, May 18, 2011 at 12:10 PM, tnk <[email protected]> wrote:
> Hi,
>
> what values can be stored in message headers (using camel 2.6)?
> Is it restricted only to String values (like setHeader("MY_HEADER", "string
> value"))?
> Can I store any Java object (serializable) in message header
> (setHeader("MY_HEADER", new MyNewObject()) )
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/camel-message-headers-tp4406101p4406101.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
CamelOne 2011: http://fusesource.com/camelone2011/
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/