Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

passivation and conversational state

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanx! for the clarifications.

soni.
 
When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic