• 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
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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 ...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic