Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session in the distribution application

 
xiaoma wang
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, everyone:
I am not clear that whether the session object keep the same when the session migrates from one JVM to another JVM? Can session object span the multiple JVMs?
Thanks in advance!
Xiaoma Wang
 
Thomas Hubschman
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes the session object can migrate across multiple JVMs. You can keep track of it's progress via the HttpSessionActvationListener.
Hope this helps,
Thomas
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3817
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by xiaoma wang:
hi, everyone:
I am not clear that whether the session object keep the same when the session migrates from one JVM to another JVM? Can session object span the multiple JVMs?
Thanks in advance!
Xiaoma Wang

A session object can reside on only one JVM at a time. It can migrate accross JVMs but it cannot "span" accross JVMs, ie. it cannot exist on more than multiple JVMs at simultaneously.
 
xiaoma wang
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, guys:
Thank you so much for the replies. I understand it now. What i want to do is to store a session bean reference in the session object and i did not know what would happen when the session object is migrated among the JVMs. Now i know that i can retrive the session bean reference from the session object, no matter which JVM it is on.
Xiaoma Wang
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic