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 )

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

What are the services provided by a J2EE container?

What is difference between Java Bean and Enterprise Java Bean?

What is transient variable?

The output of System.out.println(5>>2) in Java

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

Question: How would you go about analyzing performance of an application?

What is JAXP?

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

Name the containers which uses Border Layout as their default layout?

What are the life-cycle methods of JSP?

What is JSP declaration?

The output of System.out.println(5<<2) in Java

Question: How is the MVC design pattern used in Struts framework?

Question: What is an output comment in JSP?

Latest Articles (in Interview)