Hi I have a Filter (Persistance.java) that opens a session when the request comes in, and closes it on the way out. This works great actually. From within you backing bean you call the Hibernate service bean, which just does a Persistance.getSession(). This is a extension to the other familiar Persistance.java class (search google). My version will handle multiple hibernate configuration files.
Hermod -----Original Message----- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 8:34 PM To: MyFaces-User Subject: Design question for integrating Hibernate and JSF(MyFaces) Hi, I just started on looking at Hibernate and I want to use Hibernate from backing beans of my MyFaces application. I'd like to introduce the Hibernate "Session" for the *whole* application. I'd like to create a managed bean (application scope) that uses Hibernate's SessionFactory for creating/getting a Session. Or is it better to use ContextListner? I guess backing/managed bean should be a good thing for that... but not really sure... Thanks for any advice! Matthias * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

