Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpSession de-serialization  RSS feed

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Let's say, a HttpSession is migrated to another JVM
from the current JVM because of load-balancing in a distributed environment. How do we de-serialize the session at the other JVM?
Can someone explain this with an example.
 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't - the server takes care of serialization and deserialization for you. The programmer's responsibility is to make sure that all the objects saved as session attributes are serializable. If your app may be deployed as distributable, make sure you test that sessions are recreated accurately.
 
A day job? In an office? My worst nightmare! Comfort me tiny ad!
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!