File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Session Management in Clustering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session Management in Clustering" Watch "Session Management in Clustering" New topic
Author

Session Management in Clustering

Malli Raman
Ranch Hand

Joined: Nov 07, 2001
Posts: 312
Hi,

Head First EJB Book says that only one copy of the session objects will be available for all jvm's. Container will manages these session objects and whenever the request goes to alternate server then the session objects will be moved to the server.

My Question is

1) How the application servers are maintaining the session objects.
Whether the container will manage the session objects as described above?
or will all the application servers will have a copy of the session objects?

2) If so, What will happen if the first servers gets down and the request goes to the second server?


Thanks & Regards,
M.S.Raman
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Is this a Servlets Session question, or an EJB Stateful Session Bean question?

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Malli Raman
Ranch Hand

Joined: Nov 07, 2001
Posts: 312
Originally posted by Mark Spritzler:
Is this a Servlets Session question, or an EJB Stateful Session Bean question?

Mark


Hi Mark,

First my apologies for that I have mentioned the book name as "Head First EJB" instead of Head First Servlets & JSP in the above paragraph.(Head First EJB is always in my poor memory!).

As your question suggests that there seems to be a different mechanism for session management for stateful session ejb, I would like to know about the session management for stateful session ejb in clustering environment.

-M.S.Raman
 
jQuery in Action, 2nd edition
 
subject: Session Management in Clustering
 
Similar Threads
Swing and Server Communication
Session Replication Mandatory?
Session
one servlet container per server or per JVM?
Tip - WebSphere Clustered Environment - Session Persistence and Java Serialization