Tomcat web.xml file load-on-startup

JPleger used Ask the Experts™
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.
Watch Question

Do more with

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

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.


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