Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

What is saved during EJB Passivation?

 
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
 
author
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.
 
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
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
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().
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic