Write some simple session beans.
Set their transaction attribute to "Required".
Write POJO Hibernate code inside your session bean methods.
Presto, you've got Hibernate persistence inside your session beans.
Forget about Spring until you get the basic EJB stuff working -- if you have this much confusion about that alone, then you aren't ready for Spring.
Forget about DAOs too until you have some simple session beans that can store and load Hibernate data. Once you have a simple little prototype running, then you can refactor it to hide your Hibernate logic.
Cheers!
Rob
|