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.

 

 

 

 

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?

Getting started with Interview

What is J2EE?

What is bean managed transaction?

Latest Articles (in Interview)

Comment on this tutorial