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

Explain....

 
Rahul JG
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following is an extract from the EJB2.0 specs
"A session object handle can be held beyond the life of a client process by serializing the handle to a persistent store. When the handle is later deserialized, the session object it returns will work as long as the session object still exists on the server."
What does it mean by "as long as the session object still exists on the server"?, 'coz from what I understand, after passivation the bean instance is evicted from memory.
 
Lipman Li
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
passivation does not mean the instance disappear, it could be back after activation.
there's several ways to make instance of session bean gone:
container remove it after session time out.container crash.client remove it by using remote EJB method remove().
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rahul JG,
Please avoid cross-posting in the future. Many of us regularly check multiple forums and it is irritating to see the same post littered throughout JavaRanch.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic