Jeromy,

I wrapped a try/finally in the init and destroy method as you and the
ticket described, but there was still a memory leak that locked down
the Struts 2 core library. Are you sure these are the only things to
be done?

@Override
public void init(FilterConfig filterConfig) throws ServletException {
    try {
        super.init(filterConfig);
    } finally {
        ActionContext.setContext(null);
    }
}

@Override
public void destroy() {
    try {
        super.destroy();
    } finally {
        ActionContext.setContext(null);
    }
}

Paul

On Sat, Aug 23, 2008 at 12:20 AM, Jeromy Evans
<[EMAIL PROTECTED]> wrote:
> Paul Benedict wrote:
>>
>> https://issues.apache.org/struts/browse/WW-2167
>>
>
> Yes, it's easy to retrofit to 2.0.  It only requires a finally statement in
> the init and destroy methods.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to