• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Number of Entity Beans

 
stan lee
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dinesh Raikar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
adish jain
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how will the performance affected by pooling and caching?(i.e the beauty of ejbs)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic