Re: posting fourth time but did not got any answer
In web.xml, nested in servlet tag you have a tag called load-on-startup where you specify the priority number which your servlet will have. a value of -1 will not load on startup your servlet. Hope this helps. - David Sierra Fern ndez Ingeniero Tecnico de Telecomunicaci¢n AULA RETECAL (CEDETEL) Universidad de Valladolid Campus Miguel Delibes E-Mail: [EMAIL PROTECTED] 47011 Valladolid (SPAIN) -- -- Sierr@ -- On Sat, 12 Aug 2000, Khan Kamran wrote: Hi all, I want to know how i can run my servlet at orion server startup and shutdown. Ples help Thanks Kamran
Fw: Re: posting fourth time but did not got any answer
-Original Message- From: Christian Sell [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Sun, 13 Aug 2000 14:32:00 +0200 Subject: Re: posting fourth time but did not got any answer for server startup, the following should do: 1. specify load-on-startup for your servlet in web.xml 2. specify load-on-startup for your web application in web-site.xml for server shutdown, I have no idea Khan Kamran schrieb: Hi all, I want to know how i can run my servlet at orion server startup and shutdown. Ples help Thanks Kamran Best regards, Stanislav Bernatsky - ðÏÌÕÞÉÔÅ ÂÅÓÐÌÁÔÎÙÊ ÐÏÞÔÏ×ÙÊ ÑÝÉË @ukr.net ÎÁ http://freemail.ukr.net
RE: posting fourth time but did not got any answer
Title: RE: posting fourth time but did not got any answer Thanks to all of you. Now I will try these options when i will be home after office. Kamran -Original Message- From: David Sierra Fernandez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 16, 2000 12:58 PM To: Orion-Interest Cc: Orion-Interest Subject: Re: posting fourth time but did not got any answer In web.xml, nested in servlet tag you have a tag called load-on-startup where you specify the priority number which your servlet will have. a value of -1 will not load on startup your servlet. Hope this helps. - David Sierra Fern ndez Ingeniero Tecnico de Telecomunicaci¢n AULA RETECAL (CEDETEL) Universidad de Valladolid Campus Miguel Delibes E-Mail: [EMAIL PROTECTED] 47011 Valladolid (SPAIN) -- -- Sierr@ -- On Sat, 12 Aug 2000, Khan Kamran wrote: Hi all, I want to know how i can run my servlet at orion server startup and shutdown. Ples help Thanks Kamran
Re: posting fourth time but did not got any answer
-1 in web.xml means that the preload sequence is unimportant. Preload does however still happen. To achieve load-on-server-startup, using web.xml is not enough, since this only causes the servlet to be loaded when the application is started, which may not be before it is accessed the first time. Therefore, the same setting must be applied at the application level, too (web-site.xml) -Original Message- From: David Sierra Fernandez [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Cc: Orion-Interest [EMAIL PROTECTED] Date: Mittwoch, 16. August 2000 16:28 Subject: Re: posting fourth time but did not got any answer In web.xml, nested in servlet tag you have a tag called load-on-startup where you specify the priority number which your servlet will have. a value of -1 will not load on startup your servlet. Hope this helps. - David Sierra Fern ndez Ingeniero Tecnico de Telecomunicaci¢n AULA RETECAL (CEDETEL) Universidad de Valladolid Campus Miguel Delibes E-Mail: [EMAIL PROTECTED] 47011 Valladolid (SPAIN) -- -- Sierr@ -- On Sat, 12 Aug 2000, Khan Kamran wrote: Hi all, I want to know how i can run my servlet at orion server startup and shutdown. Ples help Thanks Kamran
Re: posting fourth time but did not got any answer
you're totally rigth, Chris - David Sierra Fern ndez Ingeniero Tecnico de Telecomunicaci¢n AULA RETECAL (CEDETEL) Universidad de Valladolid Campus Miguel Delibes E-Mail: [EMAIL PROTECTED] 47011 Valladolid (SPAIN) -- -- Sierr@ -- On Wed, 16 Aug 2000, Christian Sell wrote: -1 in web.xml means that the preload sequence is unimportant. Preload does however still happen. To achieve load-on-server-startup, using web.xml is not enough, since this only causes the servlet to be loaded when the application is started, which may not be before it is accessed the first time. Therefore, the same setting must be applied at the application level, too (web-site.xml) -Original Message- From: David Sierra Fernandez [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Cc: Orion-Interest [EMAIL PROTECTED] Date: Mittwoch, 16. August 2000 16:28 Subject: Re: posting fourth time but did not got any answer In web.xml, nested in servlet tag you have a tag called load-on-startup where you specify the priority number which your servlet will have. a value of -1 will not load on startup your servlet. Hope this helps. - David Sierra Fern ndez Ingeniero Tecnico de Telecomunicaci¢n AULA RETECAL (CEDETEL) Universidad de Valladolid Campus Miguel Delibes E-Mail: [EMAIL PROTECTED] 47011 Valladolid (SPAIN) -- -- Sierr@ -- On Sat, 12 Aug 2000, Khan Kamran wrote: Hi all, I want to know how i can run my servlet at orion server startup and shutdown. Ples help Thanks Kamran
RE: posting fourth time but did not got any answer
Title: RE: posting fourth time but did not got any answer I know it's not very robust. That's why I designated it a quick hack. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hani SuleimanSent: 14 August 2000 17:31To: Orion-InterestSubject: RE: posting fourth time but did not got any answer This isn't a very robust approach, because finalize is not guaranteed to be called. It might or might not. In fact in case of server shutdown, it's pretty unlikely to get called. For servlets, you should do your shutdown stuff in the destroy method, which the server will call before it terminates (assuming it's a graceful shutdown, of course). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of J.T. Wenting Sent: Sunday, August 13, 2000 9:32 AM To: Orion-Interest Subject: RE: posting fourth time but did not got any answer For server shutdown, a quick hack is to create a servlet that loads on server startup, has an empty init method, no service methods, and a finalize that does something. finalize will get called when the class instance (of which there is only one, of course) is garbage collected, which happens to be right before the JVM terminates ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell Sent: Sunday, August 13, 2000 14:32 To: Orion-Interest Cc: Orion-Interest Subject: Re: posting fourth time but did not got any answer for server startup, the following should do: 1. specify load-on-startup for your servlet in web.xml 2. specify load-on-startup for your web application in web-site.xml for server shutdown, I have no idea Khan Kamran schrieb: Hi all, I want to know how i can run my servlet at orion server startup and shutdown. Pleaaa as he lp Thanks Kamran
RE: posting fourth time but did not got any answer
For server shutdown, a quick hack is to create a servlet that loads on server startup, has an empty init method, no service methods, and a finalize that does something. finalize will get called when the class instance (of which there is only one, of course) is garbage collected, which happens to be right before the JVM terminates ;) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell Sent: Sunday, August 13, 2000 14:32 To: Orion-Interest Cc: Orion-Interest Subject: Re: posting fourth time but did not got any answer for server startup, the following should do: 1. specify load-on-startup for your servlet in web.xml 2. specify load-on-startup for your web application in web-site.xml for server shutdown, I have no idea Khan Kamran schrieb: Hi all, I want to know how i can run my servlet at orion server startup and shutdown. Ples help Thanks Kamran