Google News
logo
EJB - Interview Questions
What happens when two users access an Entity Bean concurrently?
Taken from Enterprise JavaBeans by Richard Monson-Haefel, “EJB, by default, prohibits concurrent access to bean instances. In other words, several clients can be connected to one EJB object, but only one client thread can access the bean instance at a time. If, for example, one of the clients invokes a method on the EJB object, no other client can access that bean instance until the method invocation is complete.” So, to answer your question, two users will never access an Entity Bean concurrently.
Advertisement