my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes Dynamic Bean Pooling ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Dynamic Bean Pooling ?" Watch "Dynamic Bean Pooling ?" New topic
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: 8919

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: 10096
    
164

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: 8919

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: 10096
    
164

Thanks Pradip, that cleared things
Dharmendra Sable
Greenhorn

Joined: May 30, 2006
Posts: 13
Thnks, it clarifies my query !!!

Cheers,
Dharmendra.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic Bean Pooling ?