users@grizzly.java.net

Re: ARP in glassfish v3

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 28 Oct 2008 13:04:46 -0400

Salut,

Igor Minar wrote:
> Hi there,
>
> I ported my ARP filter to glassfish v3, but I can't seem to configure
> glassfish v3 to use it.
>
> In v2 I used this config in domain.xml:
>
> <jvm-options>-Dcom.sun.enterprise.web.connector.grizzly.asyncHandlerClass=com.sun.enterprise.web.connector.grizzly.async.DefaultAsyncHandler</jvm-options>
>
> <jvm-options>-Dcom.sun.enterprise.web.connector.grizzly.asyncHandler.ports=8080</jvm-options>
>
> <jvm-options>-Dcom.sun.enterprise.web.connector.grizzly.asyncFilters=com.igorminar.grizzlysendfile.SendfileFilter</jvm-options>
>
>
> in v3 I changed it to:
>
> <jvm-options>-Dcom.sun.grizzly.asyncHandlerClass=com.sun.grizzly.arp.DefaultAsyncHandler</jvm-options>
>
> <jvm-options>-Dcom.sun.grizzly.asyncHandler.ports=8080</jvm-options>
> <jvm-options>-Dcom.sun.grizzly.asyncFilters=com.igorminar.grizzlysendfile.SendfileFilter</jvm-options>
>
>
> But when I try to send any request to port 8080 it just times out after
> 30 seconds. I debugged my filter briefly, but it doesn't even look like
> the doFilter method is being called.
>
> Any idea what's wrong?

Hum....looking at the code, the -Dcom.sun.grizzly.asyncFilters is no
longer working, hence it means the AsyncHandler cannot load your
AsyncFilter. Can you file a bug and I will fix it. The fix is very
simple, but for a reason I can't explain, the property support as been
removed (most probably my fault).

A workaround for you is to extend the DefaultAsyncHandler and invoke
addAsyncFilter(new com.igorminar.grizzlysendfile.SendfileFilter); inside
the default constructor. Not an ideal solution, but will works with the
current v3 Prelude.

Thanks

-- Jeanfrancois



>
>
> thanks,
> Igor
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>