users@jersey.java.net

[Jersey] Re: light weight http server

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Tue, 25 Jan 2011 16:22:50 +0100

On Jan 25, 2011, at 4:09 PM, Christopher Piggott wrote:

> Just out of curiosity ...
>
> Is it at all possible to use the lightweight http server
> (com.sun.jersey.api.container.httpserver.*) with jersey-guice? I'm
> guessing the answer is no, and that the lightest approach likely to
> work with jersey-guice will be Grizzly. But for one embedded
> application I need small small small, so thought I would ask.
>

Yes, but... it requires some work to integrate with the LW HTTP
container and write your own scope support for @RequestScoped. And of
course if you inject and depend on any servlet stuff it will not work.

BTW Grizzly also has a low-level HTTP container (just like the LW HTTP
server) from which the servlet support is layered on top.

Paul.