• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

no of beans in container

 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i got a doubt while discussing abt the stateful session bean.I understood the activation & passivation mechanism, but unfortunately if container is maintaining only 10 beans(in case the number cannot be increased) in the cache & all the beans are "in use" and a 11th client asks 4 a bean wat do u assume the container will do?
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sitaram,

Admitting that we don�t play other container specific trickeries (like allow-concurrent-calls SFSB specific tag with weblogic) I could see two options:
  • The container blocks the current transaction, and try to passivate (using either LRU or NRU) in order to release the cache. If the cache could not be released before transaction times out, an exception will be thrown.
  • Throws kind of cache full exception right away.


  • Can you think of other options?
    First doesn�t make much sense, because the blocked transaction could hold valuable resources. If this happens for many simultaneous transactions it could have pretty bad consequences. Hence I�ll go with the second option. Of course this is just my opinion (which I never tested, since in practice I never used SFSBs that often).
    Regards.
    reply
      Bookmark Topic Watch Topic
    • New Topic