• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB Spec Section 4.2.1 doubt

 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The EJB 3.0 Core Specification has Section 4.2.1 [Instance Passivation and Conversational State] :

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

#2) "The last bulleted item covers cases such as storing Collections of component interfaces in the conversational state."

Is the below statement correct ?
Statement #1 is taking about a object which is not serializable [means not implementing java.io.Serialzable interface] and can have one/all memebers defined as below:

i) Reference to enterprise bean's business interfafce.
ii) Reference to enterprise bean's business home & componenet interfafce.
iii) references to the SessionContext object
iv) Referencesto the java:comp/env JNDI context and its subcontexts
v) References to the UserTransaction interface
vi) References to the EntityManager and/or EntityManagerFactory
Container will still go ahead to save and restore such an object or collection of such objects?

Is this is what the above statement #1 and #2 conveying?
****************************************
---------------
Environment
---------------
EJB Version : 3.0
Application Server: JBOSS 4.2.3.GA
J2SE: 1.5 or 5.0
OS: Windows XP
****************************************
 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Experts, Please take time and reply.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic