You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Jonathan Eric Miller <je...@uchicago.edu> on 2005/03/07 20:16:47 UTC

Re: Design question for integrating Hibernate and JSF(MyFaces)

I'm using the design pattern listed here which is to use a servlet filter. 
So far, it works great for me.

http://hibernate.org/43.html

Jon

----- Original Message ----- 
From: "Matthias Wessendorf" <ma...@matthias-wessendorf.de>
To: "MyFaces-User" <my...@incubator.apache.org>
Sent: Monday, March 07, 2005 1:34 PM
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
>