• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
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 ...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic