Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Dynamic Bean Pooling ?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 8944
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 8944
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Pradip, that cleared things
 
Dharmendra Sable
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thnks, it clarifies my query !!!

Cheers,
Dharmendra.
 
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic