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
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
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
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
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
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
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
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
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
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
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
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
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
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
--
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
";>
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
>"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
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
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
: 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
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?
> >
> >
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
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
Do sessionListeners reside in a different context from other servlets?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
> 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
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
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
[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
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
: 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
: 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
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
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
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
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 ?
/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
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
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
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
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
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
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 /
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
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
44 matches
Mail list logo