This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
load-on-startup of servlet tag in DD
Startup Classloading in Websphere
Deploy struts app
Can i run a servlet on tomcat startup?
Static Initialization Block