aspose file tools*
The moose likes Servlets 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "load-on-startup" Watch "load-on-startup" New topic
Author

load-on-startup

app yadav
Greenhorn

Joined: Mar 07, 2005
Posts: 11
Hello,
Can any one pls tell me what are the possible int values that can be used in case of <load-on-startup>.

Thanks in advance.

Aparna Yadav
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39543
    
  27
It can be a value of 1 or greater. The one with the "1" will be loaded first, and then the others in ascending order.

Note that starting with Servlet API 2.3, the concept of javax.servlet.ServletContextListener can be used to initialize anything that needs initializing. That is a much cleaner solution than having a servlet that does not actually serve anthing.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: load-on-startup
 
Similar Threads
Startup class in WAS
Startup Classloading in Websphere
<load-on-startup> Confusion?
What does load-on-startup?
Is it guaranteed that web server will initialize all web application on the server startup time