I see your points. We arent sure yet what version of Weblogic we'll be
deploying to, but I'm developing in Tomcat. Sounds like an open
question to me.

Where would you point me to learn how to do this the  ContextListener way?


On Mon, 14 Feb 2005 11:10:19 -0800, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> On Mon, 14 Feb 2005 11:03:24 -0800 (PST), Martin Wegner
> <[EMAIL PROTECTED]> wrote:
> >
> > A PlugIn works nicely as well.  I am not sure which is the recommended
> > Struts practice.
> 
> If you're on a Servlet 2.3 or later container (which is when
> ServletContextListener was introduced), you should use it instead of
> plugins:
> 
> * There are also other listeners that you should
>  explore which are available in this version -- did
>  you know, for example, that you can be notified
>  whenever anyone else in your app adds, removes,
>  or replaces an application or session scope attribute?
>  (In Servlet 2.4 you can do this for request scope too.)
> 
> * The way a Struts plugin is implemented is to have
>  the init() and destroy() methods called from the
>  corresponding methods on ActionServlet.  Technically,
>  an app server is allowed to destroy servlet instances
>  any time it wants to, so you're not guaranteed that destroy()
>  *really* means the application is shutting down.
> 
> * Context listeners work in non-Struts apps too;
>  one less concept to learn.
> 
> Craig
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
-Dave
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to