You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ben Souther <bs...@fwdco.com> on 2004/12/08 13:00:10 UTC
Re: HttpSessionListener Interface - Mail Archive not
workingsoapologies for repost
> 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 <bs...@fwdco.com>
> Reply-To: bsouther@fwdco.com
> To: Tomcat Users List <to...@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
Re: HttpSessionListener Interface - Mail Archive notworkingsoapologies for
repost
Posted by Mark Benussi <ma...@hotmail.com>.
Solved.
For any of you using Websphere Studio to attach and debug a remote Tomcat
instance be warned. The line numbers seem to be one out on my class and it
worked when I put more than one LOC and a few more debug points (As well as
some logging thanks Ben ;) )
----Original Message Follows----
From: Ben Souther <bs...@fwdco.com>
Reply-To: bsouther@fwdco.com
To: Tomcat Users List <to...@jakarta.apache.org>
Subject: Re: HttpSessionListener Interface - Mail Archive
notworkingsoapologies for repost
Date: Wed, 08 Dec 2004 07:00:10 -0500
> 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 <bs...@fwdco.com>
> Reply-To: bsouther@fwdco.com
> To: Tomcat Users List <to...@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
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org