wood burning stoves 2.0*
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
Author

JDO

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.

Thanks
Sri
Ahmed Balim
Greenhorn

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
Sri,
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
HTH,
/rick
arun sahni
Ranch Hand

Joined: Jan 16, 2002
Posts: 91
This article also discussed JDO vs Entity bean which will help you.
http://www.onjava.com/pub/a/onjava/2002/02/20/jdoview.html


Arun Sahni<br />SCJP2,SWCD,<br />BEA Certified Specialist: Server <br />JCert Enterprise Developer for BEA.
 
jQuery in Action, 2nd edition
 
subject: JDO
 
Similar Threads
is JDO part of J2EE spec?
access different context
Hibernate, JDO 2.0 and EJB 3.0
Spring and JDO
a modelling problem