File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Starting a web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Starting a web application" Watch "Starting a web application" New topic

Starting a web application

ravinderSingh singh
Ranch Hand

Joined: Nov 18, 2004
Posts: 41

Is there any way my web application can be notified of when it is started, so that it can initialise itself?

Maybe there's some kind of listener interface?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63542

Yes, javax.servlet.ServletContextListener.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Starting a web application
It's not a secret anymore!