On Fri, 12 Oct 2007, HODAC, Olivier wrote:
> I am developping my first webapp, and I need to do things at the
> server launching step.
>
> I understood that when a client sends the first request to the server,
> it loads the required classes and instanciates them. So, I have to
> wait for the first
> From: HODAC, Olivier [mailto:[EMAIL PROTECTED]
> In my application, I have to perform stuff when the server
> starts. Where do I have to put this code?
Define and use a servlet context listener. This will run as your webapp
starts up.
http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.h
Hello,
sorry for this newby question.
I am developping my first webapp, and I need to do things at the server
launching step.
I understood that when a client sends the first request to the server, it loads
the required classes and instanciates them. So, I have to wait for the first
client