Hi

No this is not possible in the <from>.
You can use property placeholders.

Or use java code or some programming language to do it. XML is not a
programming language so it has limitation.

And for dynamic uris, then you can do it in "to" as this FAQ shows how to do it
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html

On Tue, Jun 4, 2013 at 3:11 PM, ikoblik <ikob...@hotmail.com> wrote:
> Hi All,
>
> I'm trying to configure routes using spring context based on examples from
> here:
>
> http://camel.apache.org/spring.html
>
> It seems that it is not possible to use SPeL in certain fields, for example
> I try to specify uri as follows:
>
> <camelContext xmlns="http://camel.apache.org/schema/spring";>
>     <route id="inside">
>         <from uri="#{ 'direct:inside' + uniqueNumber }"/>
>         ...
>     </route>
> </camelContext>
>
> SPeL in the uri field is never executed and is used as is. Would it be
> possible to allow for it?
>
> Ivan.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/SPeL-in-tag-attributes-when-using-Spring-context-tp5733794.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to