newton.dave wrote:
>
> --- On Fri, 6/27/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>>> I now that Hibernate session is closed, I've tried with
>>> Hibernate.initialize(person.getJobs()), but it is the same!
>>
>>... wouldn't the session still be closed?
>
>>http://www.hibernate.org/hib_docs/v3/api/org/hibernate/Hibernate.html#initialize(java.lang.Object)
>
>>It says right there that one way for this method to fail is if the session
is closed. If you didn't open a >session I'm not sure what you were
expecting.
>
> Yes, this is exactly why I asked how to solve this situation.
>
>>> Please, help because I think this is MAJOR problem with every
>>> Struts + Spring + Hibernate application.
>>
>>As such, you'll want to look at the *Hibernate* docs.
>
> I see that I can use OpenSessionInViewFilter, just I now need some example
> for this kind of application.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/LazyInitializationException-with-Struts-2-%2B-Spring-2-%2B-JPA-%2B-AJAX-application-tp18155823p18156895.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]