• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passivation and conversational state

 
Soni Prasad
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please explain it about session beans instance passivation and conversational state from specifications

"An object that is not directly serializable, but becomes by replacing the references to an enterprise bean's home and component interfaces, the reference to the SessionContext object, the reference to the java:comp/env JNDI context and its subcontexts, and the reference to the UserTransaction interface by serializable objects during the object's serialization."

soni.
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose you have a Collection (say an ArrayList) of home interface references. I don't think the home interface references are serializable as they are in the Collection, so you will need to do something like this.
 
KasiMurugan Ramasamy
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

SessionContext is implemented by Container, it use the externalizable concept while passivation process that is it writes the sessionContext objects as binary stream objects which informations are enough for retrieve the equivalent sessionContext object when activation.These informations are container dependent.When activation it uses the information which written while passivation to construct the equivalent SessionContext object. Simmillar concept for other things also.

I hope it will help you.

Thanks & Regards
Kasimurugan R.
 
Soni Prasad
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx! for the clarifications.

soni.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic