init is called only once when the servletcontext is initialised (basically when you start tomcat). <load-on-startup>1</load-on-startup> says this servlet has highest priority at loading. 2 and higher numbers are loaded after servlets with 1 are loaded. I am not sure whether this is guaranteed or just a guideline.
Joined: Oct 03, 2004
I�m using Tomcat and if I put <load-on-startup>4</load-on-startup>, init() method is called when the context is initialized, if I don�t put, init() methos is called only whne the first request is made...