Re: [Simpleweb-Support] A clean way to shutdown the server ?
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2006-11-04 19:08:09
|
Hi Pat,=0A=0AI am going to include a proper shutdown for the server soon. I=
t will be done via a signalling framework, this will allow various componen=
ts within the system to shutdown gracefully. Shutdown is an issue that has =
needed to be addressed for a while now.=0A =0ACheers,=0A=0ANiall=0A=0A=0A--=
--- Original Message ----=0AFrom: R Pat <pat...@gm...>=0ATo: simplew=
eb-...@li...=0ASent: Thursday, November 2, 2006 2:13:25=
AM=0ASubject: [Simpleweb-Support] A clean way to shutdown the server ?=0A=
=0AHi Nial,=0A=0ASomething that looks right to shutdown the server (it work=
s for me):=0A=0Apublic class MyServer implements Runnable {=0A=0A=0A publi=
c void run() {=0A=0A System.err.println("Server is shutting down...");=
=0A=0A=0A // Close all...=0A=0A ........=0A=0A // This finalize al=
l =0Asimpleweb's threads=0A=0A Runtime.getRuntime().runFinalization();=
=0A }=0A=0A=0A protected final static void shutdown() {=0A Runtime.get=
Runtime().exit(0);=0A=0A }=0A=0A=0A protected MyServer() {=0A Thread s=
hutdownHook =3D new Thread(this, "shutdown-hook");=0A=0A=0A Runtime.getR=
untime().addShutdownHook(shutdownHook);=0A=0A }=0A=0A}=0A=0ARegards,=0APat=
rick=0A=0A-----------------------------------------------------------------=
--------=0AUsing Tomcat but need to do more? Need to support web services, =
security?=0AGet stuff done quickly with pre-integrated technology to make y=
our job easier=0ADownload IBM WebSphere Application Server v.1.0.1 based on=
Apache Geronimo=0Ahttp://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&b=
id=3D263057&dat=3D121642=0A_______________________________________________=
=0ASimpleweb-Support mailing lis...@li...=
=0Ahttps://lists.sourceforge.net/lists/listinfo/simpleweb-support=0A=0A=0A=
=0A=0A=0A=0A |