What are the differences between a JavaBean and an Enterprise JavaBean?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What are the differences between a JavaBean and an Enterprise JavaBean?
Rating:
The differences between a JavaBean and an Enterprise JavaBean are as follows:
- The behavior of an Enterprise JavaBean (EJB) can be changed without changing the code and recompiling it. This can be done using the deployment descriptor. This is not possible in a JavaBean.
- A JavaBean is an intraprocess component whereas an EJB is an interprocess component.
- A JavaBean runs in a Java Virtual Machine (JVM), while an EJB runs in an EJB-compliant container inside an EJB server.
- A JavaBean implements presentation logic in the presentation layer also known as the Web-tier, whereas an EJB implements business logic in the business tier also known as the EJB tier.
Rating:
Was this information helpful?
Other articles
- How to deploy and run an EJB application using a J2EE server.
- What is the <unchecked/> element of the deployment descriptor?
- What is NoSuchObjectException?
- What is the == operator?
- What is the Never transaction attribute?