The Source for Java Technology Collaboration

Home » java.net Forums » GlassFish » GlassFish

Thread: Sun one 6.1 sp 6 Gracefull

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: May 27, 2008 4:53 PM by: rmakkar
rmakkar

Posts: 6
Sun one 6.1 sp 6 Gracefull
Posted: May 24, 2008 7:07 AM
  Click to reply to this thread Reply

We are using sun one 6.1 sp 6 on solaris 8. I added some mime types on my instance through editing mime.types file. I think it will need restart .. ./stop and ./start but is there any way to do a graceful restart like in apache ; httpd -k graceful ? I am pretty new to sun one so .. not sure.


Also is there any way we can restart only one Virtual server in a instance without impacting other virtual servers ?

Thanks in Advance.

justadreamer2007

Posts: 1
Re: Sun one 6.1 sp 6 Gracefull
Posted: May 25, 2008 2:55 PM   in response to: rmakkar
  Click to reply to this thread Reply

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.

rmakkar

Posts: 6
Re: Sun one 6.1 sp 6 Gracefull
Posted: May 27, 2008 4:53 PM   in response to: justadreamer2007
  Click to reply to this thread Reply

Thanks .. and any input about restarting only one virtual server instead of doing graceful for complete app instance




 XML java.net RSS