Both according to the 1.1 AND the 2.0 spec this should work, if I read
correctly. The 1.1 spec in section 6.4.1 'Instance passivation and
conversational state' says:

"The Bean Provider is required to ensure that the ejbPassivate method
leaves the instance fields ready to be serialized by the Container. The
objects that are assigned to the instance's non-transient fields after the
ejbPassivate method completes must be one of the following:
- a serializable object
- a null
- an enterprise bean's remote interface reference, even if the stub class
is not serializable
- an enterprise bean's home interface reference, even if the stub class is
not serializable
- ....

The 2.0 spec says the same in its section 7.4.1

Ralph Jensen
----- Original Message -----
From: Richard Katz <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 05, 2001 7:28 AM
Subject: [JBoss-user] ??!! Stateful Session Passivate with Entity
references ?? !!


> Hi all,
>
> The EJB spec - according to Richard Monson-Haefel [for some version of
EJB]
> - requires the container to automatically convert EJBObject instance
> variables to Handles on passivation of a stateful session bean - and
restore
> them on activation.
>
> This presumably means one should be able to declare:
> Case (1)
>    class MyStatefulSessionBean implements SessionBean {
>       MyEntity1 entity1;
>       MyEntity2 entity2;
>
> Instead of:
> Case (2):
>    class MyStatefulSessionBean implements SessionBean {
>       Handle entityHandle1;
>       Handle entityHandle2;
>
> And not have the session bean suddenly explode during passivation.
>
> Questions:
>
> Is this correct?
>
> Is there a way to make Case (1) work in JBoss?
>
> Are there XML configurations that need to be set?
>
> Or is Richard talking about EJB 2.0 only - and not EJB 1.1?
>
> Regards,
>
> Rich Katz
>
>
>
> -----Original Message-----
> From: Sternagel Annegret (PN-SYS/DAS)
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 7:18 AM
> To: '[EMAIL PROTECTED]'
> Subject: AW: [JBoss-user] Passivate.
>
>
> Check the types of the data members of the session beans.
> All bean members of a class must be serializable so they can be
passivated.
>
> Annegret
>
> > ----------
> > Von: Alefia Lotia[SMTP:[EMAIL PROTECTED]]
> > Antwort an: [EMAIL PROTECTED]
> > Gesendet: Dienstag, 29. Mai 2001 12:22
> > An: [EMAIL PROTECTED]
> > Betreff: [JBoss-user] Passivate.
> >
> > I am using session beans in my project. If the bean is
> > not being used, the server trys to passivate it.
> > However, i get tons of exceptions that it could not
> > passivate the bean.
> >
> > Any clues?
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Auctions - buy the things you want at great prices
> > http://auctions.yahoo.com/
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to