users@grizzly.java.net

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

From: Naresh <Srinivas.Bhimisetty_at_Sun.COM>
Date: Tue, 01 Sep 2009 17:23:59 +0530

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