sfStart() timeout

Dominik Pospisil <[email protected]> Tue, 28 Nov 2006 10:55:42 +0100
Newsgroups gmane.comp.java.smartfrog.user
Organization RedHat
Message-ID <[email protected]>
Hello there!

I am trying to write a smartfrog component which's start can take ralativelly 
long time (even minutes). The problem is following. Should I run component 
startup in a new thread and exit sfStart() immidiatelly or should I block 
sfStart() until component starts up?

According to docs, when a compoent leave sfStart(), SF assumes that component 
is running and ready. But If I block sfStart() until component is ready, I 
receive liveness check errors.

If I do not block sfStart(), dependant components will fail to start, because 
component is not ready yet.

Did I missed something? Is there another solution than increasing liveness 
checking period?

Thanks,

- Dominik

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV