• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

EJB it's thread safe, its not ?

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

Only to clarify me, each SessionBean is tied to a client right ?, it's mean that SessionBeans are thread safe ?


Anyone can pick up more this issue ?


cheers ,,

Paulo Nunes
Brazil
 
Ranch Hand
Posts: 379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Paulo Nunes:
Hi ,

Only to clarify me, each SessionBean is tied to a client right ?, it's mean that SessionBeans are thread safe ?


Anyone can pick up more this issue ?


cheers ,,

Paulo Nunes
Brazil



Yes Paulo, session beans are thread-safe. But pay attention when you talk about being tied to a client. There is a difference between stateless and stateful session beans. The former are 'tied' to a client just for the duration of a method execution, while the latter maintain a conversation state. One is guarantee, however, that a bean instance will serve only one client at the same time.
 
Paulo Asterio Nunes
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Marco,

Thanx for your reply ...
 
reply
    Bookmark Topic Watch Topic
  • New Topic