• Post Reply Bookmark Topic Watch Topic
  • New Topic

What is saved during EJB Passivation?  RSS feed

 
manu mk
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have the following question regarding EJB passivation.
What is saved during EJB Passivation?
1. UserTransaction
2. EJBHome reference
3. EJBObject Reference
4. Naming Context
5. Transient variables
Thanks in advance,
manu
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is saved during EJB Passivation?
1. UserTransaction
2. EJBHome reference
3. EJBObject Reference
4. Naming Context
5. Transient variables

1, 2, 3 and 4 (i.e. everything except transient variables). see EJB spec chapter 7.4.1 for details.
 
Parul Patidar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And EJBContext ??
Originally posted by Lasse Koskela:

1, 2, 3 and 4 (i.e. everything except transient variables). see EJB spec chapter 7.4.1 for details.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And EJBContext ??

Yes. Well, actually only SessionContext because passivation happens only with SFSBs...
 
manu mk
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why not the passivation in entity bean
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why not the passivation in entity bean

Ok. I was a bit too simplistic with my words. Entity beans are passivated as well but it means a different thing for entity beans than for stateful session beans.
Passivating an entity bean means that the EJB container is done with the instance and it is going back to being an anonymous member of the "free pool". Activation on the other hand is taking an anonymous member and giving it an identity (unique record in the database). Note that there is no state to persist here, only the data which is handled by ejbLoad() and ejbStore().
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!