camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Header and java.util.Date
Date Fri, 07 Jun 2013 07:20:47 GMT
The simple language has a date function but its only for formatting to
a String value

If you want code like new Date() then you would need to use some of
the other languages like groovy, javascript, possible mvel, or ognl
can do it.

On Thu, Jun 6, 2013 at 8:24 PM, Cristiano Costantini
<> wrote:
> Hi All,
> I want to set the value of an header to a java.util.Date with current value.
> How can I do in XML DSL?
> <setHeader headerName="messageTime">
> <...whichLanguage?>which Value?</...whichLanguage?>
> </setHeader>
> My preference is for languages in camel-core if possible...
> Thanks!!
> Cristiano

Claus Ibsen
----------------- The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message