> Sounds like time for my favorite URL reference - where to get the spec so
> you can look stuff like this up for yourself :-)
>
> http://java.sun.com/products/servlet/download.html
>
> On this particular issue, there is no such platform-independent API. In
> fact, the 2.2 and 2.3 specs explicitly remind you that you *cannot* rely
> on "servlet will stay loaded" behavior in a portable application. The
> container is free (as far as the spec is concerned) to unload a loaded
> servlet any time it feels like doing so.
>
> That was one of the primary reasons that application event listeners were
> added in 2.3 -- to give apps a portable mechanism that does not rely on
> non-guaranteed assumptions about servlet lifetime, or on container
> specific implementation features.
>
> Craig
Indeed, I need to read the spec. (Hey, I've read JDBC and EJB at least :) Thanks
for the help, though.
The upshot of this is, that it might make the interceptor (startup class)
solution more appealing, even though it isn't platform independent. That is,
until Servlet 2.3 implementations are stable.
Any thoughts?
-Erik