Originally posted by william kane:
Since the bean instances are pooled and one of the bean instances is used for serving the find method, will the same bean instance be eventually serving the client thru the ejbobject?
This is not a requirement. The EJB specifications does not cover this ground. It simply says entity bean "homes" should support finder methods and return a remote instance( or a collection of remotes in case of a multi-entity finder ) representing the underlying data. Whether or not the instance used to find becomes the instance returned to the caller is upto the implementation.
If you think about it, this approach fits very well into the concept of EJB instance pooling - as an EJB client, you only make calls to the home or remote interface.
You should not worry and/or make any assumptions about the actual "bean instance" that serves the request. This will enable vendors to implement their own version of instance pooling algorithms while not deviating from the requirements of EJB specs.
[ April 24, 2003: Message edited by: Ajith Kallambella ]