• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

which method called sessionActivated or passivated

Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well i am confused about the question that
when session is migrated from server say 'A'
Which method is called on server 'A' (sessionActivated or Passivated)and when recieved on server 'B' which method is called on 'B'(sessionActivated or Passivated).
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I am aware there are no methods sessionPassivate and sessionActivate.
What will happen is that when an HttpSession object on server A is passivated all attributes of the session object that implement the HttpSessionActivationListener
interface will have their sessionWillPassivate method called, then when the session is activated on B they will have sessionDidActivate called.
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A related question..
If an attribute has been attached to the session on Server A, when the session is migrated to Server B does the object get migrated aswell ?... i.e Does the objects stored within a session need to be serialisable if the application is to be distributable ?
I've been selected to go to the moon! All thanks to this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic