B.Singh B.Singh - 1 year ago 114
Java Question

EJB and Synchronization

Are Session Beans (stateless session beans, stateful session beans) Synchronized?

Answer Source

Only one thread at a time will be accessing your beans. It is up to the application server to manage this. So you should not be using synchronized from within your beans. This is why a non-threadsafe like EntityManager can be an instance value and not have synchronization issues.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download