Re: invalidate session after calling listeners

2005-08-29 Thread Hassan Schroeder
Franklin Phan wrote: I have found the solution. Cool. :-) What threw me off in the first place was the poor API documentation for HttpSessionBindingListener interface. It says for valueUnbound: "Notifies the object that it is being unbound from a session and identifies the session." It g

Re: invalidate session after calling listeners

2005-08-29 Thread Franklin Phan
Hassan, I have found the solution. I think that a big part of what you were saying was something that I was already doing but neglected to mention (i.e., having a line of code in the JSP to bind the listener object to the session using setAttribute). Your commenting out my two lines of code d

Re: invalidate session after calling listeners

2005-08-28 Thread Franklin Phan
Hassan, Also, I don't understand the difference between a "global" and a "non-global" listener approach. Can you explain? Thanks. Thanks. Hassan Schroeder wrote: Franklin Phan wrote: I'm trying to code a method to clean up specifically named files inside a working dir (in Windows XP) whe

Re: invalidate session after calling listeners

2005-08-28 Thread Franklin Phan
Hassan, How do I add an instance of the listener to each session? Can you please provide an example? I forgot to mention that I already have the following in the first JSP after the login is validated: <% session.setAttribute("sessionListener", listener); %> What you say, "...and that ob

Re: invalidate session after calling listeners

2005-08-27 Thread Hassan Schroeder
Franklin Phan wrote: I'm trying to code a method to clean up specifically named files inside a working dir (in Windows XP) whenever the session times out. Rather than a global listener approach, why not just add an instance of your listener *to each session*? When the session ends and that o

Re: invalidate session after calling listeners

2005-08-26 Thread Franklin Phan
ndingListener and define your own valueBound and valueUnbound methods. DarekC On Fri, 2005-08-26 at 13:08, Franklin Phan wrote: Is there a way to set Tomcat to call listeners before invalidate() is called on a session? I'm trying to code a method to clean up specifically named files insid

Re: invalidate session after calling listeners

2005-08-26 Thread Darek Czarkowski
You could implement HttpSessionBindingListener and define your own valueBound and valueUnbound methods. DarekC On Fri, 2005-08-26 at 13:08, Franklin Phan wrote: > Is there a way to set Tomcat to call listeners before invalidate() is called > on a session? > I'm trying to code a m

invalidate session after calling listeners

2005-08-26 Thread Franklin Phan
Is there a way to set Tomcat to call listeners before invalidate() is called on a session? I'm trying to code a method to clean up specifically named files inside a working dir (in Windows XP) whenever the session times out. I can't seem to find a way to do it. Apparently, inval

Re: SV: Cluster: will session listeners got called again after replication?

2005-03-02 Thread Filip Hanik - Dev lists
listeners will not be invoked on a state transfer, as it is not considered an event. when a new member joins the cluster, it requests a state transfer from one of the other members. Joseph Lam wrote: I have it turned on already. But seems that after a node is killed and then started up again

Re: SV: Cluster: will session listeners got called again after replication?

2005-02-27 Thread Joseph Lam
Hanik - Dev Lists wrote: > there is a flag you can set so that listeners don't get called, its optional > > its called notifyListenersOnReplication, see server.xml for example, > default is true > > Filip > > Jesper Ekberg wrote: > > >Hello! > >My first

Re: SV: Cluster: will session listeners got called again after replication?

2005-02-25 Thread Filip Hanik - Dev Lists
there is a difference between a "crashed" tomcat and a "shutdown" tomcat. Filip Filip Hanik - Dev Lists wrote: there is a flag you can set so that listeners don't get called, its optional its called notifyListenersOnReplication, see server.xml for example, default is

Re: SV: Cluster: will session listeners got called again after replication?

2005-02-25 Thread Filip Hanik - Dev Lists
there is a flag you can set so that listeners don't get called, its optional its called notifyListenersOnReplication, see server.xml for example, default is true Filip Jesper Ekberg wrote: Hello! My first mail to this list. :) I have read it for a long time tho. We have a tried to clus

SV: Cluster: will session listeners got called again after replication?

2005-02-24 Thread Jesper Ekberg
OTECTED] Skickat: den 24 februari 2005 08:44 Till: Tomcat Users List Ämne: Cluster: will session listeners got called again after replication? Anyone knows when a session is replicated to other nodes, will the HttpSessionBindingListener and HttpSessionAttributeListener objects be notified again? On th

Cluster: will session listeners got called again after replication?

2005-02-23 Thread Joseph Lam
Anyone knows when a session is replicated to other nodes, will the HttpSessionBindingListener and HttpSessionAttributeListener objects be notified again? On the receiver nodes, how can I detect when a session from the sender node comes in so that I can do something with it? Joseph --

RE: Listeners

2004-10-13 Thread Shapira, Yoav
Hi, >I have the listener declared in web.xml before the servlet declaration and >looks like > > > com.mbresearch.foo.FooListener > > > >... > >com.mbresearch.foo.FooListener is in the WEB-INF/classes directory. Your web.xml looks fine. Your listener doesn't actually have to implement

Re: Listeners

2004-10-13 Thread François Richard
";> com.mbresearch.main.util.AccessListener -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 12:58 AM To: Tomcat Users List Subject: Re: Listeners What version of Tomcat you are using ?. Also post the web.xml version. From the t

Re: Listeners

2004-10-13 Thread Antony Paul
>"http://java.sun.com/dtd/web-app_2_3.dtd";> > > > > com.mbresearch.main.util.AccessListener > > > > > > > > -Original Message- > From: Antony Paul [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 13, 2004 12:58 AM > To: Tomcat Users List > Subject: Re: Li

RE: Listeners

2004-10-13 Thread Ray Madigan
ROTECTED] Sent: Wednesday, October 13, 2004 12:58 AM To: Tomcat Users List Subject: Re: Listeners What version of Tomcat you are using ?. Also post the web.xml version. >From the top. rgds Antony Paul On Wed, 13 Oct 2004 00:46:43 -0700, Ray Madigan <[EMAIL PROTECTED]> wrote: > I have nev

Listeners

2004-10-13 Thread Ray Madigan
I have never used Listeners in Tomcat before and and having trouble getting one registered. I have the listener declared in web.xml before the servlet declaration and looks like com.mbresearch.foo.FooListener ... com.mbresearch.foo.FooListener is in the WEB-INF/classes directory

SEVERE: Error reading tld listeners java.lang.NullPointerException

2004-07-09 Thread Robert Hunt
: XML validation disabled Jul 9, 2004 2:05:09 PM org.apache.catalina.core.StandardContext start SEVERE: Error reading tld listeners java.lang.NullPointerException java.lang.NullPointerException at java.util.Arrays.sort(Unknown Source) at org.apache.naming.resources.FileDirContext.list

Re: Session Listeners in separate context?

2004-04-02 Thread Ben Souther
ilto:[EMAIL PROTECTED] > > >Sent: Friday, April 02, 2004 2:59 PM > >To: Tomcat Users List > >Subject: Session Listeners in separate context? > > > >Do sessionListeners reside in a different context from other servlets? > > > >

RE: Session Listeners in separate context?

2004-04-02 Thread Shapira, Yoav
Hi, No. I don't know why the code you posted wouldn't work, it looks fine. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Ben Souther [mailto:[EMAIL PROTECTED] >Sent: Friday, April 02, 2004 2:59 PM >To: Tomcat Users List >Subject: Sess

Session Listeners in separate context?

2004-04-02 Thread Ben Souther
Do sessionListeners reside in a different context from other servlets? I'm trying to create a session listener that stores the sessions in a context scoped Object. For some reason, other servlets can't seem to access the the object. /** * Adds a reference to the new session to the ac

Session Listeners in separate context?

2004-04-02 Thread Ben Souther
Do sessionListeners reside in a different context from other servlets? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Order of Filters & Listeners

2004-02-06 Thread Wendy Smoak
> From: Wendy Smoak > I have a couple of Filters, after which there is a userid in session > scope. I was hoping, in a SessionListener, to pick up that userid and > use it to read something from the database, but no dice since things > happen in the opposite order. Ah, never mind. (Not that any

Order of Filters & Listeners

2004-02-06 Thread Wendy Smoak
It looks like SessionListener happens before Filters. I have a couple of Filters, after which there is a userid in session scope. I was hoping, in a SessionListener, to pick up that userid and use it to read something from the database, but no dice since things happen in the opposite order. I

RE: In memory session replication and session listeners?

2003-06-13 Thread Lawrence, Gabriel
ssion listeners? The session listener is only notified on the machine the value actually gets set. Session data doesn't get replicated using the setAttribute/removeAttribute methods, but pure serialization. And for now, the clustering doesn't have a public API to send your own data through

RE: In memory session replication and session listeners?

2003-06-12 Thread Filip Hanik
[EMAIL PROTECTED] > Sent: Thursday, June 12, 2003 4:18 PM > To: Tomcat Users List > Subject: In memory session replication and session listeners? > > > I'm using the tomcat 4 clustering stuff found at: > > http://cvs.apache.org/~fhanik/index.html > > And

In memory session replication and session listeners?

2003-06-12 Thread Lawrence, Gabriel
I'm using the tomcat 4 clustering stuff found at: http://cvs.apache.org/~fhanik/index.html And I have one issue. I have a service that tracks some information that is reported outside the users session. This is examined by a different client then the users client. I want to keep this global infor

RE: Listeners

2003-03-15 Thread Filip Hanik
: Tomcat Users List Subject: RE: Listeners I have, and i have a primitive implementation of jms working. I was looking at the connector technology and was wondering if it or any other technology could be used to connect and utilize its loadbalancing mechanism? -Original Message- From: Filip

RE: Listeners

2003-03-15 Thread Ray Madigan
: Saturday, March 15, 2003 12:11 PM To: Tomcat Users List Subject: RE: Listeners have you looked at jms? Filip -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Saturday, March 15, 2003 11:19 AM To: Tomcat-User Subject: Listeners Does anyone know of a technology

RE: Listeners

2003-03-15 Thread Filip Hanik
have you looked at jms? Filip -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Saturday, March 15, 2003 11:19 AM To: Tomcat-User Subject: Listeners Does anyone know of a technology where i can setup a listener so a session can get notified when a foreigh event

Listeners

2003-03-15 Thread Ray Madigan
Does anyone know of a technology where i can setup a listener so a session can get notified when a foreigh event occurs. The situation I am working on is a EJB Application server wants to notify a session in a webserver that a specific change has been made. If I can do this it will make the job o

Re: Servlet/Session/Attribute Listeners not very useful ?

2002-12-29 Thread Jon Eaves
lication. ... session became invalid because the container timed out the session, or because a web component .. called the invalidate() method. The disctinction may be determined indirectly using listeners and the HTTPSession API methods" and javax.servlet.http.HttpSessionListener public void s

RE: Servlet/Session/Attribute Listeners not very useful ?

2002-12-29 Thread Jason Jonas - ATTBI
st a thought. Jason -Original Message- From: Jon Eaves [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 28, 2002 6:08 AM To: Tomcat Users List Subject: Servlet/Session/Attribute Listeners not very useful ? Hi all, Can anybody tell me what possible use these particular interfaces are ?

RE: Servlet/Session/Attribute Listeners not very useful ?

2002-12-29 Thread Mohan Radhakrishnan
/Attribute Listeners not very useful ? Hi all, Can anybody tell me what possible use these particular interfaces are ? After thinking that they would be a good idea to use for web app session management enhancements (session timeout etc) it turns out that the invocations of valueUnbound

Servlet/Session/Attribute Listeners not very useful ?

2002-12-28 Thread Jon Eaves
Hi all, Can anybody tell me what possible use these particular interfaces are ? After thinking that they would be a good idea to use for web app session management enhancements (session timeout etc) it turns out that the invocations of valueUnbound(), sessionDestroyed(), attributeRemoved() all oc

Do two listeners entail double context intialization ?

2002-10-04 Thread Wolfgang Stein
I want to enable non-enrypted HTTP-communication for most servlets of a context, but also enforce HTTPS-communication for SOME servlets of the same context. I remember some postings about multiple connectors entailing multiple context-intialization. But i'm not able to find the postings again. W

RE: Exception management in servlet listeners

2002-10-03 Thread Heligon Sandra
ubject: RE: Exception management in servlet listeners Hi, >I use the new feature ServletContextListener of the Servlet specifications >2.3. Great! So do I. ;) >I don't what to do when the exception ExBadManagerName occurs. I am trying Log it, for one. Even if you don't have a lo

RE: Exception management in servlet listeners

2002-10-03 Thread Shapira, Yoav
Hi, >I use the new feature ServletContextListener of the Servlet specifications >2.3. Great! So do I. ;) >I don't what to do when the exception ExBadManagerName occurs. I am trying Log it, for one. Even if you don't have a logging system initialized, you can use getServletContext().log("mess

Exception management in servlet listeners

2002-10-03 Thread Heligon Sandra
I use the new feature ServletContextListener of the Servlet specifications 2.3. I defined the following class: public final class XSS_ServletContextListener implements ServletContextListener { private static ServletContext s_context = null; public void contextInitialized(Servle

Please Help....Re: Listeners in the WARP Connector?

2002-02-08 Thread Mark R. Diggory
Mark R. Diggory wrote: > > I assume I would need to use a WebAppDeploy descriptor to map the > users directories to Tomcat, how would I do that for generic users > directories (~/public_html)? > > > WebAppConnection warpConnection warp localhost:8008 > WebAppDeploy examples warpConnection /

Re: Listeners in the WARP Connector?

2002-02-07 Thread Mark R. Diggory
I assume I would need to use a WebAppDeploy descriptor to map the users directories to Tomcat, how would I do that for generic users directories (~/public_html)? WebAppConnection warpConnection warp localhost:8008 WebAppDeploy examples warpConnection /examples/ WebAppDeploy manager warpConn

Listeners in the WARP Connector?

2002-02-07 Thread Mark R. Diggory
I've successflly set up tomcat to server user public_html directories using the example in the docmentation. However, this doesn't seem to work as well when I try it through my WARP connection. Is this possible? Any tips? -M