Win a copy of Fixing your Scrum this week in the Agile 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
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

Stateless Session Beans Data

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic