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

What does load-on-startup?

rex tony
Ranch Hand

Joined: Aug 29, 2007
Posts: 159
What does load-on-startup?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032

Your question rather should be What load-on-startup does?

As it implies, it loads the servlet files as your web container starts up.

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

You could also try to look into the Servlets Specification where such questions are best answered.

[My Blog]
All roads lead to JavaRanch
Radhakrishna Bhat

Joined: Dec 26, 2007
Posts: 10
loads servlet before first request.

Also decides the order of servlets loading declared in web.xml.
I agree. Here's the link:
subject: What does load-on-startup?
It's not a secret anymore!