Programming Tutorials

What is difference between Java Bean and Enterprise Java Bean?

By: Karthik in Interview Tutorials on 2012-06-16  

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.





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?

Is Iterator a Class or Interface? What is its use?

Getting started with Interview

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

What is transient variable?

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

Interview Question: What is abstract schema?

What is Collection API?

Explain the user defined Exceptions?

Interview Question: What are the optional clauses in EJB QL?

Interview Question: Why does EJB needs two interfaces(Home and Remote Interface)?

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

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

How to define an Interface?

Latest Articles (in Interview)