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.
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
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