William Au wrote:
> Besides setting load-on-startup in the web.xml file, is there another
> way
> to have a startup class define in Tomcat? ( ie I want a class to run
> whenever
> Tomcat is started)
>
Tomcat 4.0 implements the new "application events" feature of the Servlet 2.3
(Proposed Final Draft) spec. Among the events you can register listeners for
are application startup and shutdown -- perfect places to do things like opening
and closing database connections, independent of the lifecycle of an individual
servlet.
>
> Bill
>
Craig McClanahan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]