What do you mean by re-entrant? Can you say that session beans as re-entrant? Can entity beans be specified as re-entrant?
Answer / Mahendra Prasad
Re-entrancy refers to a method being called recursively from within itself. In Java EE, Session Beans can be designed to be re-entrant as they support container managed transactions. However, Entity Beans cannot be explicitly specified as re-entrant. By default, Container Managed Persistence (CMP) Entity Beans are not re-entrant due to potential issues with concurrent access. But, Bean Managed Persistence (BMP) Entity Beans can be made re-entrant by using proper locking mechanisms.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is stateless code?
What are stateless functions?
How do you decide whether you should use session, entity or message driven bean?
Is udp stateless?
Why does EJB needs two interfaces, Home and Remote Interface?
Is it possible to write two EJBs that have different bean classes, but they share same Remote interface and Home interfaces?
What were entity beans?
What is meant by ejb?
What is ejb in spring?
What are the services that a container provides for an entity bean?
What is use of @postconstruct?
What is ejb framework?