You can use the reference if the variable you are using is a 'Non-Transient'
one.

>From EJB spec-

" The Bean Provider must assume that the content of transient fields may be
lost between the ejbPas-sivate and ejbActivate notifications. Therefore, the
Bean Provider should not store in a transient field a reference to any of
the following objects: SessionContext object; environ-ment JNDI naming
context and any its subcontexts; home and remote interfaces; and the
UserTrans-action interface. "

-Anurag


>From: Hed Bar-Nissan <[EMAIL PROTECTED]>
>Reply-To: A mailing list for Enterprise JavaBeans development
><[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Does references to other beans stay valid when bean passivated ?
>Date: Wed, 9 Feb 2000 17:28:39 +0200
>
>Does references to other beans stay valid when bean passivated ?
>i have a route that that information goes through.
>client -> bean A -> bean B -> etc...
>bean A holds bean B as a member. does this handle stays valid after
>passivation and activation ? or do i have to reconstruct the route each
>time i activate bean A ?
>
>tnx.
>hed
>
>===========================================================================
>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".
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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