Jul 29 2008

Want Spring and Hibernate? Buy these books.

Posted by Joe Rinehart at 8:12 AM
1 comments
- Categories: Joe Drinks Java

I've been messing around with Hibernate for the past year or so, and have used Spring to manage it whenever possible.  Last Summer, I spent a full weekend Googling and piecing together information from blogs to learn how to "properly" integrate the two (along with ColdFusion) - there's a ton of information out there (some wrong, much outdated).  Spring 2.x, in particular, simplified a good deal of stuff when you move beyond simple wiring up of beans and into concepts like transaction management.  Many of the blog entries and articles I could find contained pretty stale information.

Luckily, there's a book that I've recently read that shows you the "right" way with a minimum of fussing about:  Spring in Action.  Its second edition covers Spring 2.x and the many simplifications (esp. for AOP) it's introduced into the Spring framework.  It begins as a great introduction to Dependency Injection (DI / IoC) and Aspect-Oriented Programming (AOP) then covers the major spring modules (DAO / ORM, remoting, security, MVC, and so on...) in order.  I'm likely to skip some sections, such as AOP or SOAP-based remoting, but they're there if I need them.

If you're shopping for Java books, I'd also recommend Java Persistence with Hibernate if you've any interest in Hibernate.  It covers (sometime in a more academic depth than necessary) just about every imaginable case for using Hibernate.  What I really enjoy with this book is that it often talks about the theory and underpinnings of ORM, showing you why things are the way they are in Hibernate, even if sometimes counterintuitive.

Last but not least, make sure you check out Amazon's used book prices - I picked up Spring in Action along with O'Reilly's Java Message Service for a combined total of $31.49.

Comments

Philip Hunt

Philip Hunt wrote on 10/20/08 4:01 AM

Hi Joe,

This is a question / request for help with Spring + Hibernate + ColdFusion.

Our company (www.enigma.co.nz) is currently trying to use an open source "Medical Records System" called OpenMRS.

OpenMRS has an API available through a JAR which we've added to our ColdFusion classpath (along with all the other JARs that the OpenMRS system comes with).

OpenMRS uses Srping + Hibernate.

We're having trouble with the OpenMRS "context" getting overwritten when multiple CF applications startup. i.e. ... all running CF applications assume the OpenMRS context of the most recently started CF application - so, as you could imagine the database settings are wrong.

We're really looking for some hands-on (paid) help from someone, and it seems like you might've had some experience with this?

Is there any chance you could help us with this please?


Thanks,
Phil

Write your comment



(it will not be displayed)