• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

session in the distribution application

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Enthuware Software Support
Posts: 4810
52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Get me the mayor's office! I need to tell him about this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic