File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servlet instantiation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet instantiation" Watch "servlet instantiation" New topic

servlet instantiation

Smitha Amresh

Joined: Jun 13, 2005
Posts: 6
Hi Folks!!
Can anybody instantiate a servlet without the client request??

Thanks in advance.

Smitha A Parika
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

You can set the "load-on-startup" option in your deployment descriptor which will cause them to be instanciated when the context is deployed.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Smitha Amresh

Joined: Jun 13, 2005
Posts: 6
Thanks Ben, this piece of information is really helpful...
I agree. Here's the link:
subject: servlet instantiation
It's not a secret anymore!