That won't work. Might be an interesting enhancement though. you will have
to do good old fashioned string concatenation.

*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Hardcore Java (2003) and Maintainable Java (2012)*
*LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39
<http://www.linkedin.com/pub/robert-simmons/40/852/a39>*


On Fri, Mar 28, 2014 at 3:29 AM, bilalalp <syme...@gmail.com> wrote:

> Hi everyone,
>
> I wonder if i can give parameters of a route with a bean to my route.
>
> For ex:
>
> instead of this:
>
> <route>
>   <from
>
> uri="sftp://localhost:9999/root?username=admin&password=admin&proxy=#proxy"/>
>   <to uri="bean:processFile"/>
> </route>
>
> can i do that?
>
> <bean id="sftpParams" class"..">
>      <property name="username" value="admin"/>
>      <property name="password" value="admin"/>
>      <property name="proxy" ref="proxy"/>
> </bean>
>
> <route>
>   <from uri="sftp://localhost:9999/root?paramBean=#sftpParams"/>
>   <to uri="bean:processFile"/>
> </route>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Route-Parameters-Bean-tp5749476.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to