https://issues.apache.org/bugzilla/show_bug.cgi?id=47881
--- Comment #5 from Filip Hanik <fha...@apache.org> 2009-10-09 06:48:53 PDT --- (In reply to comment #4) > (In reply to comment #3) > > With "startd", as there is no "await", the method completes immediately (and > > the application quits). > > > > That it is only useful if exiting that "main" method does not complete the > > application. Thus if it is not the actual entry point of the application. If > > so, does anyone need to use it that way? > > Yes, you are totally right. After the main method ends, all the daemon threads > (such as 'http-8080-Acceptor-0', 'TP-Processor', etc.) will end too. I never > thought of this consequence. So, what's the point of 'startd' and 'stopd', > anyway? public static void main(String[] args) can be called from another Java class, its not exclusive to the JVM It would be a different way of embedding Tomcat, at which point one wants the thread to return -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org