This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes load-on-startup 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "load-on-startup" Watch "load-on-startup" New topic


Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
what happens when load-on-startup is negative or zero?
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

If the value is a negative integer, or the element is not present, the container is free to load the servlet whenever it chooses. If the value is a positive integer or 0, the container must load and initialize the servlet as the application is deployed. The container must guarantee that servlets marked with lower integers are loaded before servlets marked with higher integers. The container may choose the order of loading of servlets with the same load-on-start-up value.

[My Blog]
All roads lead to JavaRanch
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
Thanks Santou
It is sorta covered in the JavaRanch Style Guide.
subject: load-on-startup
It's not a secret anymore!