The moose likes EJB and other Java EE Technologies and the fly likes JDO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JDO" Watch "JDO" New topic


Sri Rangan
Ranch Hand

Joined: Dec 08, 2001
Posts: 160
Is JDO part of J2EE architecture?
Can I use JDO with EJB (CMP or BMP). What is the risks involved using JDO and what kind of applications are really suited for JDO. It means all the J2EE projects will use JDO instead of JDBC in the future.

Ahmed Balim

Joined: May 06, 2002
Posts: 3
No JDO is not part of J2EE.It is as you would know
a simpler way to mapping to your data in Java
code than using inline SQL.When using EJB's this
is usually achieved by using Entity beans and the
connection handled by the application server.Thus
JDO is most useful when using stand alone Java
applications that need to access a database seamlessly.
Ahmed Balim
Java Architech,MF
Rick Salsa
Ranch Hand

Joined: Jul 17, 2001
Posts: 173
You can also use JDO as the persistance mechanism for EJB's. This is a viable option to look at, now that the specification has been finalized.
I'm not too sure if it is available yet, but at The Server Side, there should be a downloadable book called EJB Design Patterns. In that pdf, there is a section on using JDO with J2EE. That should answer most of your questions...
I haven't had a change to look at the JDO spec yet, but I believe the benefit of using it with J2EE, is that you'd be able to change the data store easily...
CMP also provides this sort of ability already in the J2EE world.
As Ahmed said, it is for sure going to be used quite a bit in standalone apps. No more JDBC code
arun sahni
Ranch Hand

Joined: Jan 16, 2002
Posts: 91
This article also discussed JDO vs Entity bean which will help you.

Arun Sahni<br />SCJP2,SWCD,<br />BEA Certified Specialist: Server <br />JCert Enterprise Developer for BEA.
I agree. Here's the link:
subject: JDO
It's not a secret anymore!