Patches item #568011, was opened at 2002-06-12 13:43 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376687&aid=568011&group_id=22866
Category: JBossServer Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Osma Ahvenlampi (oahvenla) Assigned to: Nobody/Anonymous (nobody) Summary: clean jboss 3.0 shutdown as a win32 serv Initial Comment: since contrib/ntservice is unfinished (kills JVM before shutdown hooks have been run), we're using the Alexandria JavaService to run JBoss as a Windows 2000 service. JavaService supports calling a static method to cleanly shut down an application before killing the JVM. However, it expects the shutdown process to have finished by the time the shutdown method returns. Since a call to org.jboss.Shutdown.main() returns before JBoss has cleanly shut down, even the Alexandria service would kill JBoss too early. However, a simple one line patch will fix this: add System.exit(0) to the end of org.jboss.Shutdown.main(). When called inside the JVM running JBoss, this will "never return", ie wait until all shutdown hooks have finished. When called from another Java process, it will work as before (since return from Shutdown.main() would exit anyway). This way, a clean shutdown is guaranteed even as a win32 service. Patch below. If this is deemed undesirable, could another static method which guarantees to not return until the shutdown hooks have finished be added? ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376687&aid=568011&group_id=22866 _______________________________________________________________ Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development