What are the possible values ​​for load_on_startup in a servlet entry in web.xml?

Obviously a load_on_startup

value of 0 means no, and 1 means. But what does the value 2 mean?

EDIT : Obviously, I shouldn't accept things before checking them out. A value of 0 still means boot at startup. Thank you stacker.

The servlet specification is surprisingly difficult to achieve.

( Here's where I saw 2 as a possible value ).

+2


a source to share


2 answers


start loads



can specify an (optional) integer value. If the value is 0 or greater, this indicates the order in which the servlets are loaded, with higher numbered servlets loaded after lower numbered servlets.

+2


a source


Determines the order in which the container loads the servlet. The servlet does not load until the request tries to access it.



The container starts the servlet in ascending order of load for a specific start value (1 to 2, 2 to 5, etc.)

0


a source







All Articles