Thanks Willem for the replies. I have modified the routes a little bit , it may not be the right way to do but still it works.
from("file://c:?fileName=rssUrl.txt&noop=true&readLock=none"). process(new Processor() { public void process(Exchange exchange) throws Exception { // read the file contents here } }).loop(nosOfTimes). split(body(String.class).tokenize(";")). delay(noOfSecs). process( new Processor() { public void process(Exchange arg0) throws Exception { { String rssUrl = (String)arg0.getIn().getBody(); if(logger.isInfoEnabled()) logger.info("Polling url :"+rssUrl); URL feedUrl = new URL(rssUrl); SyndFeedInput input = new SyndFeedInput(); SyndFeed feed = input.build(new XmlReader(feedUrl)); if(logger.isInfoEnabled()) logger.info("got feed:" +feed.getTitle()); arg0.getOut().setBody(feed); } }}). to("direct:processRssFeed"). end(); Thanks, Hussain http://www.impetus.com -- View this message in context: http://camel.465427.n5.nabble.com/How-to-evaluate-an-expression-substitute-a-variable-for-building-URI-s-at-runtime-tp1618587p1843098.html Sent from the Camel - Users mailing list archive at Nabble.com.