Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Are stateful session beans thread safe?

707797Jul 14 2011 — edited Jul 14 2011
Hi,

I would like to know if stateful session beans thread safe?

Can someone explain the multithreading aspects of stateful session beans?

To my understanding, every client request creates a new stateful bean which has a separate thread in memory & so the state for each stateful instance is not affected by any other threads (Client requests). That means it works as a Single Thread model.

But, if it so, then why we have to use Session synchronization for state thread safety.

Can some one help.

Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 11 2011
Added on Jul 14 2011
4 comments
1,721 views