Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Entity Pool / Session Bean Pool  RSS feed

 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Questions seems to be silly, but I want to know whether all the Entity Beans (Say Customer Bean, Cabin bean) are maintained in the same Entity Bean pool. Similary for stateless session bean pool are pooled in the same pool? If so then there will be around lots of bean be pooled in resource which will eat lots of memory?

Is it not possible whether we can have only 10 bean instances for all the entity beans (say 10 entity beans) and based on the method invocation the bean instance be serviced.

Thanks & Regards,
M.S.Raman
 
Slava Imeshev
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Spec does not dictate it. So it's container specific. Weblogic allows to control these parameters.

Yet, I'd recommend not to be concerned about resources as long as you don't see any problems. Don't fall into premature optimization.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!