The moose likes JDBC and Relational Databases and the fly likes JDO vs. Castor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDO vs. Castor" Watch "JDO vs. Castor" New topic

JDO vs. Castor

mark evertz

Joined: Apr 11, 2002
Posts: 22
Hello all,
does anybody know what the main differences between Exolab's Castor and the JDO-spec. are?
We want to use it in a bigger application, because the first tests leads to the impression, that Castor is much easier to use than e.g. OJB.
On the other side I read that JBoss (the most popular application using Castor for CMP) will change to an Aspect oriented approach (??!?!?!?) not using Castor?!
Maybe someone can enlight me a little bit? :roll:
Ed Trembicki-Guy

Joined: Mar 19, 2003
Posts: 7
It was my impression that Castor implements the JDO spec. No?

The things I did not know at first I learned by doing twice. -Billy Joel
Philip Shanks
Ranch Hand

Joined: Oct 15, 2002
Posts: 189
IIRC, Castor compiled Java classes from XML-Schema while the original JDO was still limited to DTD's.
I believe this distinction has gone away with the final release of JAXB 1.0.1.
UPDATE... Sorry, I was apparently confusing Castor XML with Castor whatever...
[ June 17, 2003: Message edited by: Philip Shanks ]

Philip Shanks, SCJP - Castro Valley, CA
My boss never outsources or has lay-offs, and He's always hiring. I work for Jesus! Prepare your resume!
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
It was my impression that Castor implements the JDO spec. No?
OnJava article -
"Castor JDO": Simply False Advertising

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
David Jordan
Ranch Hand

Joined: Jun 14, 2003
Posts: 66
Castor JDO does not support the Java Data Objects (JDO) specification. I have already written about this elsewhere, the link is found in this thread.
JBoss has decided to provide a JDO implementation in their JBoss 4.0 release. They looked at the various persistence solutions and decided JDO had the best approach.
I agree. Here's the link:
subject: JDO vs. Castor
It's not a secret anymore!