Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Where stateful sessionbean persist the state ?  RSS feed

 
Himanshu Babuni
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read one Q and Ans from the jGuru site.

Question : How is Stateful Session bean maintain their states with client?

Some part of the Answers :
By Manjula Gundluri => passivate the state into HARDDISK .
By Vadiraj A => restore the state from the SECONDARY STORAGE.


My doubt is when ejbPassivate() is called the necessary informations for that state will be stored in the secondary storage or it will be in the stack ?

If it is in secondary storage(HDD) container is handling that or container is delegating to OS ?

If it is in the stack is there any chance that OS will swap this data to HDD.(Virtual memory concept)?

Can anyone clarify my doubt pls.

Thanx in Advance.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Passivated stateful session EJB information is stored in a file (of serialized Java objects) on the hard disk. This is true of all EJB containers.

Kyle
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!