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 )

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

What is difference between Java Bean and Enterprise Java Bean?

How to define an Interface?

What is transient variable?

Question: What is the directory structure of a web application?

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

Question: Explain the life-cycle methods in JSP?

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

Interview Question: Is Decorator an EJB design pattern?

Question: What is an output comment in JSP?

Explain the user defined Exceptions?

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

Interview Question: What is the difference between find and select methods in EJB?

Latest Articles (in Interview)