This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using CMP2.0, JDO, DAO?