Tomcat web.xml file load-on-startup

JPleger
JPleger used Ask the Experts™
on
For the load-on-startup value in the web.xml file,
what's the lowest integer you can use?
0 or 1?  Tomcat documentation (useless) doesn't say.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
I've used 0 and it worked.
Hi,

The load-on-startup variable follows the following rule:

value less than 0: The resource is loaded into memory when a request for it is received.

value of 0 or greater: The resource is loaded into memory upon server start-up. Servlets with lower integers are loaded before those with higher integers.

Hope this helps.

Sam

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial