Hi ,
>>In an Entity Bean, if a finder method returns a large number of records (say thousands of them), will thousand bean instances be created?
This depends on the Application Server that you are using. Most application servers do what is called as 'lazy loading'. When a finder method returns say 100 records, 100 Component Interfaces are created. Its only when you call a method on the bean that a bean instance is created.
>>If yes, what happens if the number of bean instances required to be created exceed the number of instances which have been specified to be maintained in the pool?
If your application server does'nt implement lazy loading & creates a 100 bean instances, well in this case your application server could hang.
>>I know this question would have been asked many times in many forums, but I haven't been able to get a convincing reply. Can anyone answer me?
Hope I was able to clear your doubt !!
Sowmya
http://www.pramati.com