Hi All,

Referencing two threads on this list with regard to the passivation/activation
and the enterprise beans references, I believe there is a lot of
misunderstanding of the 6.4.1 of the EJB-Spec. Please correct me if I'm wrong.

get a look at the following code.

public class ReferencingBean extends...{
    private SessionContext sessionContext;
    private javax.naming.Context context;
    private ReferencedBeanRemote referencedBean;

    private Serializable beanState1;
    private Object beanState2;

    public void ejbPassivate() ...{
        beanState2 = null;
    }

    public void ejbActivate() ...{
        beanState2 = ....;
    }
}

This code might work, although our Bean isn't fully serializable. The session
bean can reference it JNDI Context, the session context, the user transaction
and other bean without taking care on whether or not they are serializable. It
is the task of the container to filter, retrieve and restore these fields
during passivation/activation of the bean. (I refer to the 6.4.1 of the spec.)

Regards.

Francis.
www.mathema.de

===========================================================================
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".

Reply via email to