Thanks for the answer mr. Claus, "myVar1" is an instance member variable
contained on the class that loads the xml route file.
MyRouteClass extends RouteBuilder{
*private String myVar1;
//getter and setter for myVar1*
public void configure() throws Exception {
FileInputStream fis = new
FileInputStream("myroute.xml");
RoutesDefinition routes =
getContext().loadRoutesDefinition(fis);
}
}
And in my xml file i have this:
<from uri="quartz://fetchUrl?cron=0+0/1+*+*+*+?"/>
<setProperty propertyName="coolProperty">
<simple>*myVar1*</simple>
</setProperty>
I need to have the class written this way because each time i create an
instance, i need to pass different values to it. Is it possible to send the
values on the variable myVar1 to the routes defined on the spring file??
--
View this message in context:
http://camel.465427.n5.nabble.com/Injecting-data-to-routes-loaded-from-xml-file-tp4639765p4659913.html
Sent from the Camel - Users mailing list archive at Nabble.com.