Ans
2. Generating the referance from the serialized handle is transparent to the
user. It may be container dependend also. the specs does not tell , how it
should be done. Obviously it has to store some kind of context information
to retrieve it at a later time.
3. Find methods are served by instance that are in pool. setEntity Context
will always be called first in both cmp and bmp.
Your ans to first question is application dependent. There may be some
requirment for eg when clients shuts down and later comes back after days
then he should be able to get that reference.
> ----------
> From: SUDIPTA BHOWMIK[SMTP:[EMAIL PROTECTED]]
> Reply To: A mailing list for Enterprise JavaBeans development
> Sent: Monday, July 17, 2000 10:51 AM
> To: [EMAIL PROTECTED]
> Subject: Handles...
>
> Can anyone help me with handles...
>
> 1 : Is ther any situation where they become just absolutely necessary to
> use...
>
> 2 : In case of entity beans.. I serialize the handle shut down the
> server .. and again when i restart the server i am able to use that
> handle.. That means it is also containing some context kind of info
> that stores the primary key that was associated with it when it was
> active...when does a server actually
> decides to kill an EJBObject..
>
> 3 : When i cal a findbymethod what is called first in case of CMP a
> setEntity context or an ejbLoad...? why..?
>
> thanx..
> Bhowmik
>
> ==========================================================================
> =
> 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".
>
>
>
Visit http://www.NetVarsity.com for online learning
===========================================================================
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".