tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Souther <bsout...@fwdco.com>
Subject Re: HttpSessionListener Interface - Mail Archive not workingsoapologies for repost
Date Wed, 08 Dec 2004 12:00:10 GMT
> I have not extended httpservlet, I don't see why I would have to do >
> this?
You don't... sorry (was still on first cup of coffeee ;))

You've tried putting println statements in the sessionCreated and 
sessionDestroyed methods to verify that they're not being called?





On Wed, 2004-12-08 at 06:16, Mark Benussi wrote:
> Hi Ben,
> 
> I have not extended httpservlet, I don't see why I would have to do this?
> 
> package helpers;
> 
> import javax.servlet.http.HttpSessionEvent;
> import javax.servlet.http.HttpSessionListener;
> 
> public class SessionHelper implements HttpSessionListener {
> 
> 	public void sessionCreated(HttpSessionEvent sessionEvent) {
> 		int x = 1;
> 		// Not called
> 	}
> 	public void sessionDestroyed(HttpSessionEvent sessionEvent) {
> 		int x = 2;
> 		// Not called
> 	}
> }
> 
> ----Original Message Follows----
> From: Ben Souther <bsouther@fwdco.com>
> Reply-To: bsouther@fwdco.com
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Subject: Re: HttpSessionListener Interface - Mail Archive not 
> workingsoapologies for repost
> Date: Wed, 08 Dec 2004 06:11:51 -0500
> 
>  > Sorry what I mean is that the methods implemented for the
>  > HttpSessionListener do not get called when I invoke a new session.
> 
> You've extended HttpServlet, implemented  HttpSessionListener, and the
> code in the sessionCreated(HttpSessionEvent event) method is not being
> called when you create a new session?
> 
> Can you post your code?
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message