users@grizzly.java.net

Re: Grizzly not calling destroy for servlet filters

From: Hubert Iwaniuk <neotyk_at_kungfoo.pl>
Date: Fri, 27 Mar 2009 15:08:11 +0100

Hi Paul,
Great bug report :)
Ticket: https://grizzly.dev.java.net/issues/show_bug.cgi?id=499
Fix soon to be available in trunk.

Cheers,
Hubert.


On Fri, Mar 27, 2009 at 10:22 AM, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:

> Hi,
>
> When using Grizzly 1.9.8 and 1.9.9-SNAPSHOT i noticed when i set up the
> GrizzlyWebServer to use a filter that the Filter.destroy method is not
> called when i stop of the GrizzlyWebServer e.g.
>
> GrizzlyWebServer ws = new GrizzlyWebServer(port);
>
> ServletAdapter sa = new ServletAdapter();
>
> sa.addFilter(new MyFilter(), "filter", null);
>
> sa.setContextPath(baseUri.getRawPath());
>
> ws.addGrizzlyAdapter(sa, new String[] {""} );
>
> ws.start();
>
> // Do some stuff...
>
> ws.stop() // MyFilter.destroy() not called
>
> Attached is a simple maven project that reproduces the issue. See the
> filter.Main.MyFilter class, which should print something out on destroy.
>
> Paul.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>