1.

What Are The Requirements For Making A Java Ee Application Session Replication Enabled?

Answer»
  • SETTING distributable tag in web.xml just enables the application to support session replication, however it does not GUARANTEE that your application will work fine in a session replicated environment. 
  • JEE Application developer needs to make sure following things are taken care during web application development.
  • All attributes/objects that are saved in HTTP Session are serializable. This means all your custom objects and child objects of that should be serializable.
  • MAKING CHANGES to any session attribute should be done using session.setAttribute() method. If you have reference to a java object that was previously SET in session, you must call session.setAttribute() method every time you make any change to the object.



Discussion

No Comment Found