myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cagatay Civici" <>
Subject Re: Combine Hibernate and JSF, but how?
Date Thu, 12 Oct 2006 12:35:14 GMT
Hi Mosimann,

Between JSF and Hibernate, Spring fits very well because it has features
both for jsf and hibernate.

Using Spring's delegating variable resolver, Spring beans can be injected to
the JSF managed beans.

Also with the HibernateTemplate of spring, and Aspect oriented transaction
services plus OpenSessionInViewFilter, hibernate is managed well.


On 10/12/06, Mosimann Matthias <> wrote:
>  Hi Julian
> Well in the presentation layer you have the jsp's and the backing beans.
> In the domain layer you have hibernate resp. the persitence classes. And
> between them you have this shale-like framework. Do I understand that right?
> regards
> Matthias
>  ------------------------------
> *Von:* Julian Ray []
> *Gesendet:* Donnerstag, 12. Oktober 2006 14:24
> *An:* 'MyFaces Discussion'
> *Betreff:* RE: Combine Hibernate and JSF, but how?
>  We use Hibernate and JSF but don't use Spring. We use a Shale-like
> framework where each JSF view has a single backing bean which is
> Hibernate-session-aware.  Works great.
>  ------------------------------
> *From:* Mosimann Matthias []
> *Sent:* Thursday, October 12, 2006 8:14 AM
> *To:* MyFaces Discussion
> *Subject:* Combine Hibernate and JSF, but how?
>  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

View raw message