DWR + Spring + JPA Session Closing
Background
The application I'm working in is currently using Spring + JPA. Everything was fine before we decided to introduce DWR.
Using DWR, I call a method on the Service class and then redirect it to the controller.
try{
return WebContextFactory.get()
.forwardToString("/search.do?searchString=" + searchString);
}catch(...){
}
After that, when the lookup method is called in the DAO, it doesn't find the nib session.
Session session = (Session) entityManager.getDelegate();
This session is closed here ...
I think my changes (DWR introductions) do not affect session creation in any way.
Pending entrances.
Shardul.
+2
source to share