Site Navigation

Mar 11, 2008

J2EE Startup Class

Been wondering if such a thing existed so I could use it in my current project. Turns out it does! According to this blog entry (thanks Vinny), you can add a: <load-on-startup>1<load-on-startup> element to your servlet element in web.xml. This loads your servlet and runs its init method. The number in the element represents the order the servlets are loaded in if you have more than 1 starting. Pretty cool. I guess I will get to see how well it works shortly.
Post a Comment

Favorite Links Feed