Re: Slow startup of routes

2013-05-14 Thread hussainpirosha
Thanks Claus for pointing out the mistake. Changed the design to have a single route per protocol and now using the dynamic EIP pattern to pass in the endpoint url and other parameters. The new route looks like : from("direct:http") .recipientList(simple("http:${header.url}? httpClient.so

Re: Slow startup of routes

2013-05-13 Thread hussainpirosha
Thanks Willem, I am not clear how can we use caching for component creation, please elaborate on it. Need to set the soTimeout per endpoint since each dispatch message contain its endpoint and timeOut settings. Thanks, Hussain -- View this message in context: http://camel.465427.n5.nabble.co

Slow startup of routes

2013-05-12 Thread hussainpirosha
Hi, I am using camel to implement dispatcher EIP. There are thousands of messages in a queue which needs to be delivered at different URLs. Each message has its own delivery URL and delivery protocol (ftp,email,http etc). The way we are implementing in Camel is - Boot a single camel context, the

Re: How to evaluate an expression/substitute a variable for building URI's at runtime ?

2010-07-22 Thread hussainpirosha
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(Exchan

Re: How to evaluate an expression/substitute a variable for building URI's at runtime ?

2010-07-21 Thread hussainpirosha
Thanks Willem for the reply, but still i want to use the same routes that i have posted (without using a dataformat). Is it possible to evaluate the URI at runtime ? , somehow source the RSS URL to from() method. Thanks, Hussain -- View this message in context: http://camel.465427.n5.nabble.com