File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Architect Certification (SCEA/OCMJEA)
Question on collection of Entity references
Joined: Apr 17, 2006
Aug 09, 2006 20:41:00
There is an Employee Entity bean and one of its finder method, say findByAge()returns the collection of Employee objects whose age is < 40.
Application server�s Bean pooling setup for that bean is minimum 2 beans and maximum 10 beans.
Suppose the above method return 100 objects in the collection, my question is how the Application server or
container handles this situation.
What exactly that collection object will have 100 references to the Employee EJB object or 100 EJB objects.
I don't think Application server will create 100 Entity beans so how this will be handled.
I am thinking when the client is iterating each bean, that time container creates the corresponding entity and once the iterator points to the next object the current object will be pooled.
Please can any one explain how this will be handled.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Question on collection of Entity references
My SCEA Part 1Study Notes
My Study Notes
choosing between home business methods and finders
Nice EJB Questions. Any Takers?
long post IBM.158
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015