On Wed, Dec 7, 2011 at 4:47 PM, Castyn <eric.ben...@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: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to