camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Date String Creation
Date Wed, 07 Dec 2011 16:00:32 GMT
On Wed, Dec 7, 2011 at 4:47 PM, Castyn <eric.bender@gmail.com> wrote:
> So if I declared a bean with id of getLastRunDate that returned a string of
> the appropriate date format, how do you actually call that in the Spring DSL
> to set a header?
>

Use the method call expression, something a like this:

<setHeader headerName="myDate">
   <method ref="myBean" method="getLastRunDate"/>
</setHeader>



> --
> View this message in context: http://camel.465427.n5.nabble.com/Date-String-Creation-tp5052753p5056060.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message