This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes Session Replication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Session Replication " Watch "Session Replication " New topic

Session Replication

PN Kumar
Ranch Hand

Joined: Sep 08, 2001
Posts: 38
In Weblogic 8.1 server, at which point of time does session replication actually take place.For instance, suppose there are 3 servers in a group(across systems), and requests from a particular client go to server1.What i understand from clustering is that the session gets replicated to server2 and server3 - when actually does it take place? Is it during each request - if so wont there be an unnecessary overhead? Or is it during failure of server1 - in which case, how come the session in server1 gets replicated after server1 fails?
Sathwik BP

Joined: Mar 04, 2004
Posts: 2
In a cluster env, replication happens when a value is bound or unbound from the Session/ServletContext objects.
This happens every time, when an object is bound or unbound, and yes this could be a performance issue, considering that the amount of data that is stored in the Session/ServletContext objects.
Rob Misek
Ranch Hand

Joined: Sep 24, 2002
Posts: 41
Further, I am pretty sure that WebLogic follows a primary and secondary modeal for session replication so the session is not replicated to _both_ server2 and server3, just one of them.

<a href="" target="_blank" rel="nofollow"></a><br /><a href="" target="_blank" rel="nofollow">Coherence:</a> Easily share live data across a cluster!
wood burning stoves
subject: Session Replication
Similar Threads
Struts 2 session writing efficiency / timing
ServletContext will be replicated in case Session Replication or not
while implementing clustering why shouldn't i use Servlet application scope and stat
static variables vs loadbalancing
HttpServletRequest , HttpServletSession are they serializable