tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject RE: Extending Standard Context
Date Fri, 04 Jan 2002 18:32:14 GMT

On Fri, 4 Jan 2002, Guido Medina wrote:

> Date: Fri, 4 Jan 2002 08:51:44 -0400
> From: Guido Medina <>
> Reply-To: Tomcat Users List <>
> To: 'Tomcat Users List' <>
> Subject: RE: Extending Standard Context
> I read in Servlet 2.3 Spec that LifecycleListener is also portable, the same
> as ServletContextListener, Am I wrong ?, I guess not...

A simple rule to figure out what might be portable:

* Portable APIs start with "javax.servlet", non-portable APIs do not.

* Portable functionality is configured in web.xml, non-portable
  functionality is not (in Tomcat, the non-portable stuff is in

Since the full classname of LifecycleListener is:


it becomes obvious that this is not portable to other servers :-).

However, the servlet API *does* include some stuff that is similar in
spirit to what LifecycleListener does inside Catalina -- in particular the
ServletContextListener and HttpSessionListener APIs let you be involved in
the "lifecycle" of web applications and HTTP sessions, respectively.
These APIs are portable across all containers that implement Servlet 2.3.

> Guido.

Craig McClanahan

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message