Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stateless Session Beans Data

 
Nupur Gupta
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a newbie..if several clients are serviced by the same instance of a stateless session bean(SSB) isnt there any data interference? How many instances of a SSB can be created by a container - is it the same as the number of clients?
Thanks a lot.
 
Sunil Dixit
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nupur,

As far as stateless session bean is concern there will no data interference between different bean instance,reason is your session bean doesn't remember the state.
In app server we have pool concep for Entity and Stateless session bean. But remember both pools are different
As far as Stateless Sesssion bean pool is concern,this pool got all the ready state bean instance and container can directly assoicate these instance with you EJBObject.
So you can configure this parameter,that is how many instances shd be created when you server is up.
Now the question comes if all instance are busy to fill the client request than what ?
So some container wait till the time any busy instance gets free but some container re-create bean instance (configurable).
hope that is is clear to you.

Cheers,
Sunil Dixit
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!