users@jersey.java.net

Re: [Jersey] Re: automatic resource registration and guice

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 04 Jun 2010 17:39:34 +0200

On Jun 4, 2010, at 5:35 PM, Christopher Piggott wrote:

>> ServletAdapter sa = new ServletAdapter();
>> sa.addServletListener(ProtobufServletConfig.class);
>> sa.addFilter(new GuiceFilter(), "guiceFilter", null);
>
> com.sun.grizzly.http.servlet.ServletAdapter doesn't seem to have an
> .addServletListener() method that takes a class, though ... at least
> not (apparently) in grizzly 1.9.18-i. I tried feeing it a string, but
> that blew up with some jndi errors - maybe it's trying to do a lookup.
>

Oopps i meant:

   sa.addServletListener(ProtobufServletConfig.class.getName());

Paul.