Hi David,

why you want to override - define your own in the web.xml !

<listener>
<listener-class>myServletContextListener</listener-class>
</listener>

You have to implement the 'javax.servlet.ServletContextListener' - Interface with the following two methods :

public void contextInitialized(ServletContextEvent e);
public void contextDestroyed(ServletContextEvent e);

The same if want to listen for sessions. You have to additionally implement the 'javax.servlet.http.HttpSessionListener'-Interface with

public void sessionCreated(HttpSessionEvent e);
public void sessionDestroyed(HttpSessionEvent e);

regards

Ronald

David G. Friedman wrote:
In the MyFaces taglib, it has the listener declaration (which works in my 
Tomcat 5.0.28 :

<listener>
    
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>

Is there any way to override this other than:

a) Edit the taglib file to change it.

b) make my own 
/WEB-INF/classes/org/apache/myfaces/webapp/StartupServletContextListener.java 
file?

Regards,
David


Reply via email to