Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Minimum Instance Cache Size ?  RSS feed

 
stara szkapa
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why some servers such as JBoss have Minimum Instance Cache Size in
1) Stateful Session Bean
2) Entity Bean
After studying lifecycle of this beans I don�t see how it is possible the cache can have more beans in it than it is needed by clients.
 
stara szkapa
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm talking here about READY state in case of stateful session bean or
entity bean. In extreme case if every client calles remove() then the number
of instances in READY state should be zero. However JBoss has "Minimum
Instance Cache Size" which is the minimum number of instances in READY state
which implies there is always some minimum number of instances in READY
state. Why? I don't see any advantage of having this constant, and I don't
see how possibly the server can enforce minimum instances in READY state
since this number depends exclusively on clients activity.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!