wood burning stoves 2.0*
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
Author

servlet instantiation

Smitha Amresh
Greenhorn

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

Thanks in advance.

Regards
Smitha A Parika
Ben Souther
Sheriff

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
Greenhorn

Joined: Jun 13, 2005
Posts: 6
Thanks Ben, this piece of information is really helpful...
 
Don't get me started about those stupid light bulbs.
 
subject: servlet instantiation