the best option is to use a "session in view" approach (http://www.hibernate.org/43.html) Another option is to use seam or ejb with an entity manager. In this case you have a session in each method of the backing bean. I currently widely use first approach.
another int 2006/10/12, Mosimann Matthias <[EMAIL PROTECTED]>:
Hi everyone I'm wonder if it is neccesary to use Spring Framework to combine Hibernate and JSF. What is you experience in that topic? I can imagine that many people use Hibernate as o/r mapper. Where can I finde some resources (articles or books) for a strategy or overview howto combine plain Hibernate with plain JSF for a three layer architecture. I know theoretically it is possibly to write some business logic in den managed beans from JSF. This is the form centric approach Kito Mann discripes in his book JSF in Action. But that isn't what I want. I'm a beginner in both topics (hibernate and jsf) and for me it's no clear how this fit together. Is it recommended to use Spring to stick this two worlds togehter? Is that a good way to use Spring? Many thanks, I'm a little bit confused. regards Matthias
-- ::SammyRulez:: http://www.kyub.com/blog/ ----------------------------------------------------------------- La programmazione รจ per un terzo interpretazione e per due terzi ispirazione. E per un terzo mistificazione

