File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Session Replication " Watch "Session Replication " New topic
Author

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
Greenhorn

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="http://www.tangosol.com" target="_blank" rel="nofollow">www.tangosol.com</a><br /><a href="http://www.tangosol.com/coherence.jsp" target="_blank" rel="nofollow">Coherence:</a> Easily share live data across a cluster!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Replication
 
Similar Threads
while implementing clustering why shouldn't i use Servlet application scope and stat
Struts 2 session writing efficiency / timing
HttpServletRequest , HttpServletSession are they serializable
ServletContext will be replicated in case Session Replication or not
static variables vs loadbalancing