aspose file tools*
The moose likes Servlets and the fly likes servlet start up on server initialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet start up on server initialization" Watch "servlet start up on server initialization" New topic
Author

servlet start up on server initialization

Arun Prasath
Ranch Hand

Joined: Jul 18, 2006
Posts: 60
what will happen if
<load-on-startup>0</load-on-startup> or
<load-on-startup>-1</load-on-startup> is given in the servlet element of the DD?
Ravinder Rana
Greenhorn

Joined: Dec 07, 2006
Posts: 19
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlet start up on server initialization
 
Similar Threads
Startup Classloading in Websphere
Can i run a servlet on tomcat startup?
Static Initialization Block
Deploy struts app
load-on-startup of servlet tag in DD