Re: Why can't SessionBean's EJBObjects be Shared
Posted By:
Anonymous
Posted On:
Thursday, October 22, 2009 02:56 AM
You must synchronize the calls made by several threads
(web clients using the servlet context) using the same EJBObject.
The EJBObject instance you receive after lookup or
injection is basically a stub. this stub might use I/O,
JTA and more to interact with the EJB container.
These types of interactivity requires synchronization -
so each client will get served in its own context.