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.
 

Reply via email to