• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Technical and Business Advantages of POJOs compared with EJBs

 
Pj Murray
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two questions that will immediately come up if you propose using POJOs rather than EJBs:

What are the technical advantages of POJOs?


What are the business benefits of POJOs?


.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
POJO makes business logic reusable across frameworks. For example it will possible to move a domain object from Hibernate to EJB 3.0. I am assuming that external metadata file is used.Using Annontations would mean still changes are required.

Currently EJB business objects are tightly coupled to EJB framework as they implement Entity, Session interface. Ofcourse you could move the business logic to a Java class and call the java class from the EJB bean.
 
Chris Richardson
author
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Murray

See here http://www.coderanch.com/t/216025/ORM/java/Author-Chris-Richardson

Let me know if this does not answer your questions.

Chris
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic