• Post Reply Bookmark Topic Watch Topic
  • New Topic

Clustered Server - Session Handling

 
kri shan
Ranch Hand
Posts: 1480
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Session handling in the clustering environment needs Serializable object and session.setAttribute to replicate the values acrosss the clusters. Whether non serializable object in a clustering environment replicates session values across clusters using session.setAttribute() ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't your first sentence answer your question?
 
Michael Angstadt
Ranch Hand
Posts: 277
Eclipse IDE Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You said it yourself--the attribute class must implement Serializable in order for the session attribute to migrate to the other VM. If it does not implement Serializable, it will not migrate.

However, the specs do not require that Java serialization be used to serialize the object for migration. So if the class has custom serialization code, it may not run.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!