Hi, Got a doubt. Say Iam modeling Entity beans for an application which creates some 10000 records in a table. Is that meant 10000 entity beans were created and can any server handle it? What is the maximum number of entity beans can a server handle? Thanks! Stan Lee
Joined: Mar 17, 2000
Entity beans are created only when a client requests it. The app server will not automatically instantiate 10000 entity beans on startup. The number of entity beans living in memory depends on server resources and to a certain extent the ejb container implementation. Using instance pooling and swapping the container will be able to use fewer instances to represent a large number of underlying data records. That is the beauty of EJB technology.
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Joined: Aug 08, 2003
Just to add one more point to Ajith's comment. You can mention how many beans you want to keep in the pool and that can be mentioned in the ejb deployment descriptor. -Dinesh
Joined: Aug 05, 2003
how will the performance affected by pooling and caching?(i.e the beauty of ejbs)