wood burning stoves
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes SF session bean ejbPassivation nuance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "SF session bean ejbPassivation nuance" Watch "SF session bean ejbPassivation nuance" New topic

SF session bean ejbPassivation nuance

Swamy Nathan
Ranch Hand

Joined: May 16, 2004
Posts: 187
Container guarantees saving of the following field types during passivation even though they are non-serializable fields as long as they are not transient.
1.Local / remote component and home interfaces (even if the objects / stubs are not serializable)
2.A SessionContext object
3.A bean�s special JNDI context or any of its subcontexts
4.The UserTransaction interface which can be got from the SessionContext
5. A resource manager connection factory like a instance of javax.sql.DataSource

QA) (Does 5 include all resource manager connection factories- [javax.sql.DataSource / javax.jms.QueueConnectionFactory /javax.jms.TopicConnectionFactory / javax.mail.Session / javax.net.URL].

QB) What of Administered objects (resource environment references) or JMS destinations). Are they excluded like java.sql Connection?
Arun Krishnamoorthy

Joined: Nov 03, 2004
Posts: 22
The answer is Yes for question A. I am not 100% sure on the JMS destinations NOT being passivated on question 2.
I agree. Here's the link: http://aspose.com/file-tools
subject: SF session bean ejbPassivation nuance
It's not a secret anymore!