• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is bean pool?

 
Arun Maalik
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear sir would you please tell me that why ejb contaner use pull to store bean in statless session bean.
I have many confusion here?

-->what is bean pool?
-->when it is created first time?
-->Is it heap memory on any thing else?
-->suppose there is only one bean and many client then how many bean will in pool?

with reagrd
Arun kumar maalik
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A bean pool is where instances go to cool off in the summer.

On a J2EE server, if a stateless EJB is extremely busy, rather than have one instance queue up all the requests, and make everyone wait in turn for a particular method to be invoked, the J2EE server can create a bunch of instances, rather than one, to service clients.

When requests cool down, the J2EE server can remove instances from the pool, essentially telling the beans to get out of the pool, towel off, and go home. This then frees up some memory.

The 'bunch of stateless Session Beans' available to handle client requests is known as a pool.

Things get much more interesting when you talk about the pool of entity beans that sit idle waiting to be assigned a state, but that's another story.

-Cameron
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic