On Sep 28, 2009, at 3:41 PM, Vlatko Davidovski wrote:
> Hi Paul!
>
> Thanks so much for the fast reply.
> I was quite happy to see Atmosphere Spade Server as a module in the
> system I am developing (a RESTful device gateway for automation)
> because of the following reasons:
> - it can run standalone
> - supports REST
> - supports Comet
>
> However, as I based my system on OSGi, I am now in a serious dilemma
> on how to continue. Do you have any suggestions on quick fixes I
> could do to get atmosphere (the Jersey part of it) under OSGi until
> a decent solution comes from the dev team?
>
It seems that you need some changes to the spade server to register an
implementation of Application/ResourceConfig? that should be possible.
The tricky but will be supporting Jersey with META-INF/service.
As a quick fix you could register all the classes declared in those
files for jersey-core and jersey-server and the atmosphere (see jersey-
server-components) in the ResourceConfig e.g. you could have a special
ResourceConfig that does that from which you extend to add your
application stuff.
Paul.