Hi All,

While working with Camel things are going find but have a doubt about using
Thread.sleep()
I have the following code
public void executeRoute(String routeName) throws Exception{    
                  resetStatus();
                camelContext.startRoute(routeName);
                Thread.sleep(8000);                                     
        }

Now its working fine but when i remove Thread.sleep(8000) it seems that
route is not getting executed,
My problem is i am not sure how much time a route can take for e.g if i am
picking things from local file system sleep time will be different and in
case from FTP/HTTP or any other remote call time calculations will be
entirety different

Is there any way to do it in more efficient manner as currently time i am
using to make thread sleep is purely on my assumptions and not with ant
specific calculative way

Thanks in advance
Umesh

--
View this message in context: 
http://camel.465427.n5.nabble.com/Question-regarding-Using-Thread-Sleep-tp4748986p4748986.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to