aspose file tools*
The moose likes Tomcat 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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "load on startup" Watch "load on startup" New topic
Author

load on startup

Alister Pate
Ranch Hand

Joined: Sep 13, 2002
Posts: 34
Hi guys.
My current "issue" is how to configure tomcat 4.1 to run an application (ie a servlet) on startup. Is there an easy way to do this? I've scanned the documentation (briefly) but without a lot of success.
Alister
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

It's part of the servlet declaration in web.xml


A non-null value for load-on-startup will ensure your servlet loads, and if order is important, it will load them in the numerical order of the load-on-startup elements.
Alister Pate
Ranch Hand

Joined: Sep 13, 2002
Posts: 34
Thanks for that.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: load on startup