The ServletContextListener is better solution. Besides being more elegant and independent of the actual load order of servlets, it has one key advantage. The servlet container is free to destroy and recreate (thus re-initializing) load-on-startup servlets as it sees fit, just the same as any other servlet, so your load-on-startup init code is NOT guaranteed to run just once in the lifetime of the server.
Yoav On 4/6/06, Yonik Seeley <[EMAIL PROTECTED]> wrote: > On 4/6/06, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > I acctaully thought we were using load-on-startup ... I can't for the life > > of me figure out why autowarming works since we don't have load-on-startup > > set to 1. > > We have it set to 0, meaning it load before 1 (the number is a load > order, not true/false) > > -Yonik > -- Yoav Shapira Nimalex LLC 1 Mifflin Place, Suite 310 Cambridge, MA, USA [EMAIL PROTECTED] / www.yoavshapira.com
