Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic Bean Pooling ?

 
Dharmendra Sable
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Want to understand, how EJB container behaves when all the bean instances in the pool are allocated & there is a new client request coming in. Does the container increase the pool size dynamically?

Regards,
Dharmendra.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the maximum pool size has not been reached it will increase the size. If max size is reached, the container will evacuate (passivate)some beans based on some algorithm (say LRU - least recently used)to allocate the bean to new client
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradip Bhat:
If max size is reached, the container will evacuate (passivate)some beans based on some algorithm (say LRU - least recently used)to allocate the bean to new client


My understanding was that the stateful session beans wont be pooled and a single stateful session bean is dedicated to a specific client. If at all the stateful session bean is pooled, it is a proprietary implementation. Isnt that the case?
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jaikiran Pai:


My understanding was that the stateful session beans wont be pooled and a single stateful session bean is dedicated to a specific client. If at all the stateful session bean is pooled, it is a proprietary implementation. Isnt that the case?


I am sure that have confused some with my above post. True no document of app server mentions that SFSB are pooled but I talked one IBM websphere devloper who did mention that SFSB are also pooled and the implementation is proprietary.

When max size is reached (stateless) the client gets blocked until free one is available.Otherwise timeout occurs.

For weblogic read these
http://e-docs.bea.com/wls/docs81/ejb/session.html#1121360
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Pradip, that cleared things
 
Dharmendra Sable
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thnks, it clarifies my query !!!

Cheers,
Dharmendra.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic