EJB
EJB (Enterprise JavaBeans) is a Java API (Application Programming Interface) found within Java EE specification. EJB describes an architectural model for the development of enterprise applications. This is a managed server-side model that is able to capture the business logic of the enterprise application.
Before the introduction of EJB
It was found that solutions to problems found in back-end business code were frequently re-implemented by the programmers. As a result, EJB was introduced to address these common problems such as persistence, transactional integrity and security.
Difference between EJB2 and EJB3
Print PDFEJB (Enterprise JavaBeans) is a Java API (Application Programming Interface) found within Java EE specification. EJB describes an architectural model for the development of enterprise applications. This is a managed server-side model that is able to capture the business logic of the enterprise application.
Before the introduction of EJB
It was found that solutions to problems found in back-end business code were frequently re-implemented by the programmers. As a result, EJB was introduced to address these common problems such as persistence, transactional integrity and security.
Difference between EJB2 and EJB3
1) EJB2.0 has Deployment descriptors but in EJB3.0 has no Deployment Descriptors.
2) EJB2.0 we have to write Home and Remote Interfaces But in EJB3.0 No need to write Home and remote interfaces.
3) In EJB3.0 We r identifying all entities with '@' symbol.
4)In EJB 3.0, entity bean can be effortlessly converted to DAO and vice versa. This is not possible in EJB 2.0.
4)In EJB 3.0, entity bean can be effortlessly converted to DAO and vice versa. This is not possible in EJB 2.0.
No comments:
Post a Comment