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

By: Ash Printer Friendly Format    

Question:What is the difference between JavaBean and EJB?

Answer:

A Java Bean is a software component written in the Java programming language that conforms to the JavaBeans component specification. The JavaBeans APIs became part of the “core” Java APIs as of the 1.1 release of the JDK.

The JavaBeans specification defines a Java-based software component model that adds a number of features to the Java programming language. Some of these features include:
.introspection
.customization
.events
.properties
.persistence

Enterprise JavaBeans (EJBs) are Java-based software components that are built to comply with Java’s EJB specification and run inside of an EJB container supplied by a J2EE provider. An EJB container provides distributed application functionality such as transaction support, persistence and lifecycle management for the EJBs.

 

 

 

 



Most Viewed Articles (in Interview )

Question: What is a Hidden Comment in JSP?

What is Deployment Descriptor?

Interview Question: What is Action Class?

Interview Question: What is lazy loading?

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 an output comment in JSP?

What is J2EE?

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

Explain the Encapsulation principle.

Explain the different forms of Polymorphism.

What are all the different scope values for the tag?

Interview Question: What is Struts Validator Framework?

Interview Question: How does Struts work?

Interview Question: If the framework doesn't do what I want, can I request that a feature be added?

Interview Question: What is EJB container?

Latest Articles (in Interview)

Comment on this tutorial