What do you mean by re-entrant? Can you say that session beans as re-entrant? Can entity beans be specified as re-entrant?



What do you mean by re-entrant? Can you say that session beans as re-entrant? Can entity beans be sp..

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

Post New Answer

More EJB Interview Questions

What is stateless code?

1 Answers  


What are stateless functions?

1 Answers  


How do you decide whether you should use session, entity or message driven bean?

1 Answers  


Is udp stateless?

1 Answers  


Why does EJB needs two interfaces, Home and Remote Interface?

4 Answers  


Is it possible to write two EJBs that have different bean classes, but they share same Remote interface and Home interfaces?

1 Answers  


What were entity beans?

1 Answers  


What is meant by ejb?

1 Answers  


What is ejb in spring?

1 Answers  


What are the services that a container provides for an entity bean?

3 Answers  


What is use of @postconstruct?

1 Answers  


What is ejb framework?

1 Answers  


Categories