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 11:53:06 UTC
Re: HttpSessionListener Interface - Mail Archive not working so
apologies for repost
> My SessionHelper class implements HttpSessionListener and in my local test
> environment it works fine. But on my Tomcat I get zilch nowt yadda.
>
What do you mean when you say you get nothing on Tomcat?
What are you trying to do?
---------------------------------------------------------------------
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
Re: HttpSessionListener Interface - Mail Archive not
workingsoapologies for repost
Posted by Ben Souther <bs...@fwdco.com>.
> 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 not workingsoapologies for
repost
Posted by Mark Benussi <ma...@hotmail.com>.
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
Re: HttpSessionListener Interface - Mail Archive not working
soapologies for repost
Posted by Ben Souther <bs...@fwdco.com>.
> 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
Re: HttpSessionListener Interface - Mail Archive not working soapologies for
repost
Posted by Mark Benussi <ma...@hotmail.com>.
Sorry what I mean is that the methods implemented for the
HttpSessionListener do not get called when I invoke a new session.
----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 working
soapologies for repost
Date: Wed, 08 Dec 2004 05:53:06 -0500
> My SessionHelper class implements HttpSessionListener and in my local
test
> environment it works fine. But on my Tomcat I get zilch nowt yadda.
>
What do you mean when you say you get nothing on Tomcat?
What are you trying to do?
---------------------------------------------------------------------
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