What is difference between Java Bean and Enterprise Java Bean?

By: Karthik  

Answer: Java Bean as is a plain java class with member variables and getter setter methods. Java Beans are defined under JavaBeans specification as Java-Based software component model which includes the features like introspection, customization, events, properties and persistence.

Enterprise JavaBeans or EJBs for short are Java-based software components that comply with Java's EJB specification. EJBs are delpoyed on the EJB container and executes in the EJB container. EJB is not that simple, it is used for building distributed applications. Examples of EJB are Session Bean, Entity Bean and Message Driven Bean. EJB is used for server side programming whereas java bean is a client side. Bean is only development but the EJB is developed and then deploy on EJB Container.


Archived Comments


Most Viewed Articles (in Interview )

What is bean managed transaction?

Interview Question: What is the difference between Message Driven Beans and Stateless Session beans?

What do you understand by JTA and JTS?

How to define an Abstract class?

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

Interview Question: What is abstract schema?

Interview Question: What about JSTL and JavaServer Faces ?

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

Interview Question: Why aren't the Struts tags maintained as part of the Jakarta Taglibs project ?

Explain the different forms of Polymorphism.

What are Access Specifiers available in Java?

What are the services provided by a container?

What is the difference between jsp:include page and @ include file?

Interview Question: What is Local client view in EJB?

Interview Question: Is Decorator an EJB design pattern?

Latest Articles (in Interview)

Comment on this tutorial