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

By: Ash Printer Friendly Format    

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.

 

 

 

 

Ask a Question



Most Viewed Articles (in Interview )

Name the containers which uses Border Layout as their default layout?

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

Interview Question: Is Struts compatible with other Java technologies?

Interview Question: Who wrote Struts?

Interview Question: Where can I get help with Struts?

Interview Question: What is Deployment descriptor?

Interview Question: What is EJB client JAR file?

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

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

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

Interview Question: What is deployment descriptor?

Interview Question: What is local interface. How values will be passed?

Interview Question: What is the difference between JavaBean and EJB?

Getting started with Interview

What is J2EE?

Latest Articles (in Interview)

Comment on this tutorial