File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Using CMP2.0, JDO, DAO? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Using CMP2.0, JDO, DAO?" Watch "Using CMP2.0, JDO, DAO?" New topic
Author

Using CMP2.0, JDO, DAO?

Jane Somerfield
Ranch Hand

Joined: Jul 20, 2002
Posts: 193
Can anyone help me with the pros and cons of
CMP2.0 and JDO?
I know CMP is the standard, and JDO is not.
What about the transaction management?
What doe JDO has, but DAO can not do?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
For one, CMP (i.e. a full J2EE stack) is heavier than just a JDO implementation. Furthermore, CMP as the implementation technology tends to affect your design more intrusively than JDO, which is close to transparent.
I know CMP is the standard, and JDO is not.
Well, JDO is a standard as in "there's a JSR for it in the JCP", but CMP is certainly more widely used to date.
What about the transaction management?
Both technologies support transactions.
What doe JDO has, but DAO can not do?
Standard interfaces? Really, the question is kinda weird as JDO is a standard API while DAO is a design pattern...


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Using CMP2.0, JDO, DAO?
 
Similar Threads
Why do we need a framework other than JDBC to access DB?
In what tier to put O/R mapping?
Spring and JDO
Use DAO or not? in JDO
DAO vs JDO