Interview Question: How many EJB Objects are created for a Bean?

By: Ash  

Question:How many EJB Objects are created for a Bean?

Answer:

For a Session bean - one EJB object for one bean instance.

For entity bean - it depends , if 2 users are accessing one row at time then one EJB object is used for both the beans other wise for each bean one EJB object.

 

 

 

 



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?

What do you understand by JSP Actions?

Explain garbage collection?

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

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

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)?

Interview Question: Is Decorator an EJB design pattern?

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

Latest Articles (in Interview)

Comment on this tutorial