Comparison EJB 2 and EJB 3 #Java Short Notes

Comparison EJB 2 and EJB 3

  1. EJB 2.0 has deployment descriptors but EJB 3.0 has no deployment descriptor
  2. In EJB 2.0 you have to write Home and Remote Interfaces But in EJB3.0 you do not need to write Home interfaces
  3. In EJB 3.0, all entities are identified with ‘@’
  4. In EJB 3.0 methods like ejbPassivate, ejbActivate, ejbLoad, ejbStore, etc. are not required
  5. EJB 3.0 is totally newly designed including the entity manager
  6. EJB 3.0 entity beans are just POJO
  7. No EJB container required to run
  8. EJB 3.0 supports Java Persistence API for all of its data needs
  9. No XMLDeployment Descriptors but annotations
  10. EJB 3.0 entity beans/JPA becomes local
  11. Queries are very flexible. Multiple levels of joins are enabled
  12. 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