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