• Post Reply Bookmark Topic Watch Topic
  • New Topic

how many instances will be created if 10 user access the session bean?  RSS feed

 
gopal kishan
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

When i use stateless session bean and 10 user access the bean then how many instances will be created??


When i use stateful session bean and 10 user access the bean then how many instances will be created??

thanks in advance
GK
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gopal,


When i use stateless session bean and 10 user access the bean then how many instances will be created??

Depending upon the max number of bean instances in the pool. If your max >= 10, then your container will create exactly 10. Otherwise if the max is let's say 9, your first 9 client transactions will run, while the 10th one will block.

When i use stateful session bean and 10 user access the bean then how many instances will be created??

Containers like weblogic may chose to cache the SFSBs. They also can provide configuration parameters to control this cache, in a similar manner with SLSBs pool. Hence it depends upon the max number of instances in cache that could be >= 10, etc.
Regards.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!