Clustering HTTP Sessions in Tomcat

2002-04-09 Thread Dion Almaer


Filip Hanik has written a great article on HTTP Session Replication using Tomcat 4.
http://www.theserverside.com/resources/index.jsp

In this article we will cover one of the clustering technologies, HTTP session 
replication, that is used within the J2EE model. In
the second half of the article, an example is provided of how session replication can 
be implemented using Tomcat in conjunction
with JavaGroups, a communication protocol which can perform reliable multicast 
operations to transfer session state between nodes.

Dion

--
 \\|//
 (o o)
+oOOo-(_)-oOOo--+
|   [EMAIL PROTECTED]   | "Dew knot trussed yore spell chequer two|
| www.almaer.com/dion |  fined awl yore mistakes"   |
+---+


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




HTTPSessions: sessionDestroyed(), attributeRemoved(), etc

2002-03-08 Thread Dion Almaer


Hi guys -

I am trying to write some code that listens to HTTPSessions, and when the server is 
going to destroy
it, I want to do something with it first.  sessionDestroyed() seems to be called AFTER 
the session is destroyed,
and as soon as one attribute is removed due to invalidation, the session can't be 
accessed (IllegalStateException is thrown saying
that the session is already invalidated).

What is the best way to do this?  Would it be better to have a Map where I add 
objects, and add that Map to the session,
and then have the Map implement HttpSessionBindingListener.valueUnbound() and get the 
attributes that way?

Cheers,

Dion

--
 \\|//
 (o o)
+oOOo-(_)-oOOo--+
|   [EMAIL PROTECTED]   | "Dew knot trussed yore spell chequer two|
| www.almaer.com/dion |  fined awl yore mistakes"   |
+---+


--
To unsubscribe:   
For additional commands: 
Troubles with the list: