I notice that in previous discussions on this list,
people talk a lot about using ServletFilters to open a Session and ensure it is
closed. Is there any problem with using an interceptor to do
this?
ie
public String intercept(ActionInvocation
invocation)
{
try
{
...open
session...
invocation.invoke();
}
finally
{
...close
session...
}
}
John.
|
- Re: [OS-webwork] Hibernate with interceptor John Patterson
- Re: [OS-webwork] Hibernate with interceptor Francisco Hernandez
- RE: [OS-webwork] Hibernate with interceptor Drew McAuliffe
- Re: [OS-webwork] Hibernate with interceptor Matt Ho
- Re: [OS-webwork] Hibernate with interceptor Jon Mountjoy
- RE: [OS-webwork] Hibernate with intercept... Patrick Lightbody
- Re: [OS-webwork] Hibernate with interceptor Philipp Meier
- RE: [OS-webwork] Hibernate with interceptor Jason Carreira