users@jersey.java.net

Re: [Jersey] Re: Atmosphere Spade Server in OSGi

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 30 Sep 2009 11:07:23 +0200

On Sep 30, 2009, at 4:21 AM, Jeanfrancois Arcand wrote:

> Salut,
>
> Paul Sandoz wrote:
>> On Sep 28, 2009, at 11:29 PM, Vlatko Davidovski wrote:
>>> Thanks for your feedback Paul! Could you be more specific in the
>>> steps to be taken.
>> First, I think it is going to require some changes to the
>> Atmosphere spade server to ensure better programatic configuration
>> of Jersey:
>> - The spade server needs to support registering of an instance or a
>> class of Application.
>> Jean-Francois, that should be easy to declare the class of the
>> Application to use in the AtmosphereAdapter. You can also declare
>> an instance by directly instantiating Jersey's ServletContainer and
>> passing the instance to the constructor (in the latest SNAPSHOT
>> source).
>
> I need to work on that part as the AtmosphereAdapter can be used
> without Jersey (atmosphere-core), and It will bring a hard
> dependency if I instantiate the Servlet directly.
>

OK.

If you move the Jersey stuff into a separate (package private) class
that is referenced by the AtmosphereAdapter then it will be possible
to utilize AtmosphereAdapter without Jersey if the package private
class is never utilized.

Paul.