users@jersey.java.net

Re: [Jersey] jersey-test Glassfish dependencies

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 09 Nov 2009 16:39:40 +0100

On Nov 9, 2009, at 4:30 PM, tarjei wrote:
>>
>> I thought you managed to get that to work, (as least as a
>> workaround),
>> by using a later version of Grizzly?
>
> I thought so at first, but further testing has made me conclude that
> that is not possible :(
>
> Also, is it so that neither the InMemory or HTTPServer will support
> Spring?
>

How are you trying to support Spring with those containers?

The in memory container and LW HTTP server does not support the
Servlet API. They are defined as low-level containers.

The real issue is how to register an instance of the
SpringComponentProviderFactory or in general an instance of a
IoCComponentProviderFactory. It should be possible via the singletons
of the resource configuration. But, of course, i have not tried this,
so something might be missing.

Paul.