| Author |
Dynamic Bean Pooling ?
|
Dharmendra Sable
Greenhorn
Joined: May 30, 2006
Posts: 13
|
|
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
Joined: Feb 27, 2002
Posts: 8876
|
|
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
|
Groovy
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8208
|
|
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?
|
[My Blog] [JavaRanch Journal]
|
 |
Pradeep bhatt
Ranch Hand
Joined: Feb 27, 2002
Posts: 8876
|
|
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
Joined: Jul 20, 2005
Posts: 8208
|
|
Thanks Pradip, that cleared things
|
 |
Dharmendra Sable
Greenhorn
Joined: May 30, 2006
Posts: 13
|
|
Thnks, it clarifies my query !!! Cheers, Dharmendra.
|
 |
 |
|
|
subject: Dynamic Bean Pooling ?
|
|
|