Programming Tutorials

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

By: Ash in Interview Tutorials on 2008-08-13  

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.

 

 

 

 





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

What is the difference between Session Bean and Entity Bean?

Interview Question: Do ActionForms have to be true JavaBeans?

What is transient variable?

What are the call back methods in Session bean?

What is the difference between interface and abstract class?

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

Interview Question: What are the call back methods in Entity bean?

Interview Question: What is lazy loading?

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

What is Collection API?

Interview Question: What is Local client view in EJB?

What is similarities/difference between an Abstract class and Interface?

Explain the Encapsulation principle.

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

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

Latest Articles (in Interview)