<load-on-startup> : WebLogic Server initializes this servlet when WebLogic Server starts up. The content of this element must be a positive integer indicating the order in which the servlet should be loaded. Lower integers are loaded before higher integers. If no value is specified, or if the value specified is not a positive integer, WebLogic Server can load the servlet in any order in the startup sequence.
Originally posted by Shrinivas Mujumdar:
If you use <load-on-startup> for each servlet then, if server supports instance pooling (which most web servers use ,i suppose) lot many instances will be created in a server memory even if you are not using them...
Originally posted by Alec Lee:
Just curious, why do we ever want to put in a negative number?
Not entirely true..
Unless your servlets implement SingleThreadedModel, they won't be pooled (there will only be on instance of each servlet per container).
Originally posted by Shrinivas Mujumdar:
ya I do agree.....but
SingleThreadModel interface is Deprecated Ben..in servlet 2.4 Spec. so why to talk about the stuff which is not recommended.......
Shrinivas
Don't get me started about those stupid light bulbs. |