File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which method called sessionActivated or passivated

 
jawwad ahmed
Ranch Hand
Posts: 179
  • 0
  • 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).
 
Graeme Brown
Ranch Hand
Posts: 193
  • 0
  • 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.
 
martin_web
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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 agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic