Interview Question: What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

By: Ash Printer Friendly Format    


Question:What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

Answer:

If we define the entity bean as being reentrant, multiple clients can connect to the Entity bean & execute methods within the entity bean concurrently. Container takes care of synchronization. If we define the entity bean as non-reentrant and many clients connect to it concurrently to execute a method, exception is thrown .

 

 

 

 


Most Viewed Articles (in Interview )

What is similarities/difference between an Abstract class and Interface?

What are the life-cycle methods of JSP?

Interview Question: How does Struts work?

Interview Question: Where can I get a copy of Struts?

Interview Question: What is ActionServlet?

Interview Question: What is Deployment descriptor?

Interview Question: Can I invoke Runtime.gc() in an EJB?

Interview Question: Why does EJB needs two interfaces(Home and Remote Interface)?

Interview Question: What is lazy loading?

Interview Question: What are the call back methods in Entity bean?

Interview Question: What is abstract schema?

Interview Question: Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?

Question: What is a Hidden Comment in JSP?

Question: What is the directory structure of a web application?

Question: How is the MVC design pattern used in Struts framework?

Latest Articles (in Interview)

Comment on this tutorial