Tuesday, April 13, 2010

Servlet load sequence

The  load-on-startup sub-element indicates the order in which each servlet should be loaded. Lower positive values are loaded first. If the value is negative or unspecified, then the container can load the servlet at anytime during startup.
Which is kinda cool, I can give 1 for one servlet which will initialize logging, and a higher number for other servlets which also must be autostarted.


Via http://www.javabeat.net/tips/166-load-on-startup-element-in-webxml.html