Hi,
This is vendor dependent implementation. Generally to enhance the
performance instance pooling is done. Means there is pool of free instances
and as soon as client request comes some instance is taken out of the pool
and assigned to the EJBObject. Means ejbActivate() is called. And
immediately after ejbActivate(), ejbLoad() is called so as to initialize the
bean instance .
So it might be possible that none of the EJBObject returned by finder
method is associated with bean instance.
Correct me if I am wrong.
Rajan
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Taneja, Harish-Kr
Sent: Friday, August 25, 2000 8:53 PM
To: [EMAIL PROTECTED]
Subject: Finder method in Entity Bean
Hi,
I have one query regarding finder methods in Entity Beans.
When a client invokes a finder method say, findByPrice(int
startingAmount,int finalAmount), more than one row can be returned.
In this case, enumeration of EJBObjects(containing refernces of primary
class objects) will be returned to the user.
What there be one Entity Bean tied to that many EJBObjects or will there be
entity bean corresponding to each EJBObject ie each EJBObject tied to one
entity bean?
Thanks,
Harish Taneja
===========================================================================
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".