users@glassfish.java.net

Re: Sun one 6.1 sp 6 Gracefull

From: <glassfish_at_javadesktop.org>
Date: Sun, 25 May 2008 14:55:16 PDT

there is no explicit graceful option available. instead server stop is ment to be graceful - that means all working server threads are stopped gracefully. gracefulness goes down to java threading model. The thread in java threading model is stopped when it finishes doing the stuff specified in run() method, and there is no explicit terminate() method in a Thread class. since jdk1.5. So the threads are terminated when they actually finish doing the stuff they need to do i.e. serving user request - therefore server appears to stop gracefully to the user.
[Message sent by forum member 'justadreamer2007' (justadreamer2007)]

http://forums.java.net/jive/thread.jspa?messageID=276496