Are stateful session beans thread safe?
707797Jul 14 2011 — edited Jul 14 2011Hi,
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