users@grizzly.java.net

Re: Support for applications which use only a Filter class, no Servlet

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 01 Sep 2009 10:41:54 -0400

Salut,

Hubert Iwaniuk wrote:
> Hi Naresh,
>
> You can also take a look
> at /trunk/code/modules/http-servlet/src/test/java/filter/JerseyrNoServletTest.java
> To see how to make it work :)

Exactly :-) This test was given to us by Paul.

A+

-- Jeanfrancois

>
> HTH,
> Hubert.
>
>
> On Tue, Sep 1, 2009 at 1:53 PM, Naresh <Srinivas.Bhimisetty_at_sun.com
> <mailto:Srinivas.Bhimisetty_at_sun.com>> wrote:
>
> Hi,
>
> I'm working on the Jersey Test Framework which supports multiple
> container types, and Grizzly is one of them.
>
> I have hit an issue with the Grizzly support for filters. In one of
> our requirements we have a case where the application would not be
> having a Servlet, but would be using a Filter instead. As per this
> requirement, I tried creating a ServletAdapter instance, which has
> no Servlet set, but the Filter is added to it. It is observed that
> when a request is sent for this deployed application, it produces an
> empty response. It however works fine when a Servlet instance is set
> together with the Filter.
>
> Does Grizzly allow deploying and/or running an application which
> works on a Filter class, rather than a Servlet, i.e., no Servlet to
> be used in the application?
>
> Thanks,
> Naresh
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> <mailto:users-unsubscribe_at_grizzly.dev.java.net>
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
> <mailto:users-help_at_grizzly.dev.java.net>
>
>