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

By: Ash  

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 )

Explain the new Features of JDBC 2.0 Core API?

How to define an Abstract class?

Interview Question: Can i map more than one table in a CMP?

Interview Question: Is Decorator an EJB design pattern?

What do you understand by JSP Actions?

What is the difference between jsp:include page and @ include file?

Interview Question: What is lazy loading?

Interview Question: What is the difference between EAR, JAR and WAR file?

Interview Question: What is the difference between ejbCreate() and ejbPostCreate?

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

Interview Question: What are the optional clauses in EJB QL?

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

Explain garbage collection?

Interview Question: What is difference between EJB 1.1 and EJB 2.0?

Interview Question: What is the difference between sessioncontext and entitycontext?

Latest Articles (in Interview)

Comment on this tutorial