• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpSessionEvent - Propagated across JVM?

 
Manikandan Jayaraman
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the HttpSessionEvent propagate to the other JVM on a session migration?

HttpSession gets migrated from one JVM to another and this is possible. At this time the HttpSessionActivationListener gets notified.

When the session gets migrated, the sessionDidActivate will be called on the target m/c JVM. Am I Right?

If that is the case, will the same HttpSessionEvent is propagated (OR) It is a fresh HttpSessionEvent and a fresh Listener instance in the target JVM, that comes into action?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The HttpSession is propagated not the HttpSessionEvent. It is the same thing not a completely fresh session. Imagine if your session were to shift when you shopped and you lost all your items. That would be terrible. It is advisable to mark those objects bound to a session as Serializable.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic