1. Passivization is a different process for EJBs that are pooled and those that are not -- at this point, only statelful session beans are not pooled. I assume that your question refers to stateful session beans since these are the only ones that actually serialize contents.
2. Serialization of a SFSB for passivization includes the transitive closure of teh object as defined by the serialization rules in Java. In addition, the EJB specification adds to those rules by extending the list of serializable types to include: (EJB 2.0 spec 7.4.1) - An enterprise bean's remote/local interface reference, even if the stub class is not serializable. - An enterprise bean's remote home/localhome interface reference, even if the stub class is not serializable. - A reference to the SessionContext object, even if it is not serializable. - A reference to the environment naming context (that is, the java:comp/env JNDI context) or any of its subcontexts. -A reference to the UserTransaction interface. - A reference to a resource manager connection factory. However, just because these things can be passivated does not mean that they automatically are, which seems to be implied in your questions. Inother words, if you have instance variables in your bean instance class that are any of the above, the EJB spec says they will be saved as part of teh conversational state. But it is up to the bea developer to provide those variables. A container implementation may opt to save any of the above automatically for its own optimization whenan instance in passivated, but these internal refernces are not required to made available to the bean instance. > >-----Original Message----- > > From: Manoj Kumar [mailto:[EMAIL PROTECTED] > > >Sent: Thursday, November 13, 2003 3:52 PM > >To: [EMAIL PROTECTED] > >Subject: While Passivation > > > > > >Hi All, > >I have a small doubt regarding the contents that gets saved during > >passivation. > > > >Question is : Which of the following properties are saved at time of > >EJB Passivation? > >Choices are : > >1) EJB Home Reference > >2) User Transaction > >3) Naming Context > >4) EJBObject Reference > > > >In my knowledge only the 1st and 4th choices are the correct. > > > >Thanx > >Manoj. > > > >=============================================================== > >============ > >To unsubscribe, send email to [EMAIL PROTECTED] and include in the > >body of the message "signoff EJB-INTEREST". For general help, send > >email to [EMAIL PROTECTED] and include in the body of the message > >"help". > > ____________________________________________________ > This message contains information that may be privileged or confidential > and is the property of the Cap Gemini Ernst & Young Group. It is > intended only for the person to whom it is addressed. If you are not the > intended recipient, you are not authorised to read, print, retain, copy, > disseminate, distribute, or use this message or any part thereof. If you > receive this message in error, please notify the sender immediately and > delete all copies of this message. > > ======================================================================== > === > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body of the message "signoff EJB-INTEREST". For general help, send > email to [EMAIL PROTECTED] and include in the body of the message > "help". > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff EJB-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". -- ................................................. On one hand, I'm indecisive; but on the other, I'm not. Rod Davison - Critical Knowledge Systems Inc. =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".