File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "load on startup" Watch "load on startup" New topic

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.
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.
I agree. Here's the link:
subject: load on startup