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: Refer to java constant from Simple Expression language
Date Sat, 23 Jul 2011 08:11:03 GMT
On Fri, Jul 22, 2011 at 1:57 PM,  <deepa.va@accenture.com> wrote:
> Hi,
>
> I am using simple expression language to define
>
> <camel:choice>
>                        <camel:when>
>                                <camel:
>                                        <camel:simple>${in.headers.abc}
==                                                          
   'xyz'</camel:simple>
>
> Instead of hard coding 'xyz' I would like to reference it from a constants file (Constants.XYZ).
Is that possible in Spring DSL? Or is Java DSL the only option?
>

That is not possible.

You can use some of the dynamic scripting languages like Groovy for that.
http://camel.apache.org/languages.html


> Please recommend.
>
> Thanks,
> Deepa
>
>
>
>  ________________________________
> This message is for the designated recipient only and may contain privileged, proprietary,
or otherwise private information. If you have received it in error, please notify the sender
immediately and delete the original. Any other use of the email by you is prohibited.
>



-- 
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