I use the FullHibernatePlugin in some small Projects, this is working very
well for me.
In larger Projects today I prefer Hibernate in combination with Spring
Framework.

Best Regards

Johannes Geppert

--
http://www.jgeppert.com
http://twitter.com/jogep


Dennis Atkinson wrote:
> 
> Hello all.
> 
> I am running into the infamous "closed session" issue, whereby I get a
> LazyInitializationException on a lazy-initialized foreign key
> relationship.  The issue, as I understand it, is that the session is
> closed before the lazy-initialized objects need to be read from the
> database, so there is no session when the read actually occurs, and the
> exception is thrown.  It seems like any complex Struts / Hibernate system
> would eventually run into this issue, as I have.  I could specify
> everything as "EAGER", but that would (eventually) load my entire database
> and that's far from an optimal solution.
> 
> As suggestions for fixing this, I have found references to the
> FullHibernatePlugin, and also the OpenSessionInViewFilter class.  Both
> claim that no code changes are required, and all that's needed are some
> configuration changes.  The documentation on how to use these two
> solutions is sparse, at best.  
> 
> Has anyone used either of these two solutions?  Is there any documentation
> floating around that I haven't found yet?  Or is there another, better
> solution that someone has found? 
> 
> I know this is a Hibernate issue and not a Struts issue, but I think
> people here must have experience with this issue.
> 
> Thanks in advance,
> Dennis
> 
> 
>       
> 


-----
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep

-- 
View this message in context: 
http://www.nabble.com/Struts2---Hibernate-Question-tp26031118p26031379.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to