1. Session Replication is nothing but having the user sessions on two location for high availability
So when the session gets created on one server which is called primary then it will get copied to other server which is called secondary,the cookie will have the details about both the primary and secondary session server details,if something happens to primary server then the user requests will be forwarded to secondary server which will become primary and it will copy the session some new secondary server in the cluster.
Sessions replication can be done using memory,file system and database, most of the app uses memory which can be access very fastl.
If you want to see whether session replication enabled and which replication is being used by the app,u need to check the weblogic.xml file of the application.
for example if you see the below line
'<'replicate-if-clustered'>'true'<'replicate-if-clustered'>'
- this means in-memory replication is enabled if the application is deployed on a cluster.
So when the session gets created on one server which is called primary then it will get copied to other server which is called secondary,the cookie will have the details about both the primary and secondary session server details,if something happens to primary server then the user requests will be forwarded to secondary server which will become primary and it will copy the session some new secondary server in the cluster.
Sessions replication can be done using memory,file system and database, most of the app uses memory which can be access very fastl.
If you want to see whether session replication enabled and which replication is being used by the app,u need to check the weblogic.xml file of the application.
for example if you see the below line
'<'replicate-if-clustered'>'true'<'replicate-if-clustered'>'
- this means in-memory replication is enabled if the application is deployed on a cluster.
No comments:
Post a Comment