Two Laptop Bag*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "load-on-startup" Watch "load-on-startup" New topic
Author

load-on-startup

Renu Radhika
Ranch Hand

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

Joined: Nov 24, 2005
Posts: 14687
    
  16

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
 
Similar Threads
What does load-on-startup?
<load-on-startup> Confusion?
order of loading in web.xml
object caching
Execute jsp code automatically at startup of server