• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic