Comparison EJB 2 and EJB 3
- EJB 2.0 has deployment descriptors but EJB 3.0 has no deployment descriptor
- In EJB 2.0 you have to write Home and Remote Interfaces But in EJB3.0 you do not need to write Home interfaces
- In EJB 3.0, all entities are identified with ‘@’
- In EJB 3.0 methods like ejbPassivate, ejbActivate, ejbLoad, ejbStore, etc. are not required
- EJB 3.0 is totally newly designed including the entity manager
- EJB 3.0 entity beans are just POJO
- No EJB container required to run
- EJB 3.0 supports Java Persistence API for all of its data needs
- No XMLDeployment Descriptors but annotations
- EJB 3.0 entity beans/JPA becomes local
- Queries are very flexible. Multiple levels of joins are enabled
- EJB 3.0 pluggable, security enabled
From: http://sitestree.com/?p=4835
Categories:Java Short Notes
Tags:
Post Data:2009-04-17 12:57:04
Shop Online: https://www.ShopForSoul.com/
(Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com
In Bengali: http://Bangla.SaLearningSchool.com
http://SitesTree.com
8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning)
Shop Online: https://www.ShopForSoul.com/
Medium: https://medium.com/@SayedAhmedCanada