Java developers have an immense number of options for database access. Often, the toughest job is figuring out which approach to take. In Java Database Best Practices, George Reese systematically compares and reviews EJB, JDO, JDBC, serialization, and other Java persistence options. You’ll understand the issues involved, how these options complement each other -- and how to design and code robust solutions with them.
Reese first reviews data architecture, including component and persistence models, transaction management, and more. There’s an excellent overview of architecting relational databases to support today’s applications while supporting growth and change. Reese reviews modeling, normalization and denormalization, and object-relational mapping, illustrating with many SQL examples.
Part II drills down into Java persistence frameworks, beginning with chapters on Container Managed Persistence (CMP) in both EJB 1.0 and the dramatically improved EJB 2.0. There’s a full chapter on EJB Bean-Managed Persistence, in which the bean programmer takes responsibility for managing persistence, possibly to support a specific database structure or data destination.
Reese then turns to JDO, Sun’s technology for transparently persisting plain Java objects in multiple tiers of an enterprise architecture. As he demonstrates, JDO allows for development of persistent applications with very light footprints -- applications that still preserve object relationships in the data store.
Part III of the book presents practical coding introductions to creating data access solutions that incorporate J2EE, JNDI, JSP, RMI, EJB, SQL, JDBC, and JDO. This may not be everything you’ll ever need to know. (Java Database Best Practices is only 286 pages long.) But it’s certainly everything you need to get rolling. Bill Camarda
Bill Camarda is a consultant, writer, and web/multimedia content developer. His 15 books include Special Edition Using Word 2000 and Upgrading & Fixing Networks for Dummies, Second Edition.