You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by komal bhola <ko...@gmail.com> on 2013/11/20 07:36:02 UTC
Store variable in camel context for later use
Hi,
I need to store a date time variable in body. I need to use this variable in
different routes and change its date and time.
I am using following code for this.
<setBody>
<simple>${SYSDATE()}</simple>
</setBody>
I am a newbie in camel. Plz help.
Thanks,
Komal
--
View this message in context: http://camel.465427.n5.nabble.com/Store-variable-in-camel-context-for-later-use-tp5743558.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Store variable in camel context for later use
Posted by komal bhola <ko...@gmail.com>.
Thanks a lot.. Will try it out ..
Regards,
Komal
Sent from my iPhone
On 20-Nov-2013, at 16:30, "Claus Ibsen-2 [via Camel]" <ml...@n5.nabble.com> wrote:
> You can use a java bean and have methods to update date and time. And
> let Camel call this bean using its bean component etc.
>
>
> On Wed, Nov 20, 2013 at 7:36 AM, komal bhola <[hidden email]> wrote:
>
> > Hi,
> >
> > I need to store a date time variable in body. I need to use this variable in
> > different routes and change its date and time.
> > I am using following code for this.
> > <setBody>
> > <simple>${SYSDATE()}</simple>
> > </setBody>
> >
> > I am a newbie in camel. Plz help.
> >
> > Thanks,
> > Komal
> >
> >
> >
> > --
> > View this message in context: http://camel.465427.n5.nabble.com/Store-variable-in-camel-context-for-later-use-tp5743558.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: [hidden email]
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://camel.465427.n5.nabble.com/Store-variable-in-camel-context-for-later-use-tp5743558p5743568.html
> To unsubscribe from Store variable in camel context for later use, click here.
> NAML
--
View this message in context: http://camel.465427.n5.nabble.com/Store-variable-in-camel-context-for-later-use-tp5743558p5743569.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Store variable in camel context for later use
Posted by Claus Ibsen <cl...@gmail.com>.
You can use a java bean and have methods to update date and time. And
let Camel call this bean using its bean component etc.
On Wed, Nov 20, 2013 at 7:36 AM, komal bhola <ko...@gmail.com> wrote:
> Hi,
>
> I need to store a date time variable in body. I need to use this variable in
> different routes and change its date and time.
> I am using following code for this.
> <setBody>
> <simple>${SYSDATE()}</simple>
> </setBody>
>
> I am a newbie in camel. Plz help.
>
> Thanks,
> Komal
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Store-variable-in-camel-context-for-later-use-tp5743558.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen