Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Basic Stateless session bean question

 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I spawn 10 threads(clients) and invoke methods on the same stateless session bean instance . The time interval between client method invocations is say a lot lesser than the time taken for the methods to complete.
Will I get an exception from the stateless session bean / will it queue all the requests and proceed without exceptions. If it queues the requests, i dont see any point using same SSB reference because it will bring down the performance.
Right now am lookign @ an application that has UI delegates which cache the SSB reference of the session facade.Now the application is obviously multithreaded. I wonder how this application works w/o throwing exceptions :-) if SSBs are not re-entrant.
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Karthik:
You are missing a very important point. THE CLIENT ALWAYS INRTERACTS WITH THE EjbObject NOT THE SESSION BEAN. It is upto the AppServer how it is polling the Stateless SessionBean. The Stateless Session Bean does not have any State so all the Bean instances in the pool are equal. That is why they are better then the Stateful Session Bean in performance
 
It's a tiny ad. At least, that's what she said.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic