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.