fmourioux
Aug 27th, 2004, 12:39 PM
Hi
I using an hibernate filter for the view, no problem.
But I don't understand why when i do in a quartz job :
1. managerCompagny.saveCompany(company);
2. company.getUsers()
I have a "lazy exception" for the second line that is just after the first one.
My "managerCompagny.saveCompany" has PROPAGATION_REQUIRED, so it use a session is exist (if not it creates one) but why close the session after ?
Excuse me for this stupid question but i want to understand.
Fabien.
I using an hibernate filter for the view, no problem.
But I don't understand why when i do in a quartz job :
1. managerCompagny.saveCompany(company);
2. company.getUsers()
I have a "lazy exception" for the second line that is just after the first one.
My "managerCompagny.saveCompany" has PROPAGATION_REQUIRED, so it use a session is exist (if not it creates one) but why close the session after ?
Excuse me for this stupid question but i want to understand.
Fabien.