Closed tmontanaro closed 10 years ago
This was a hard one ;). But I think it was worth it...
Anyway, to enable Sse support I had to fix several things:
1) It's now possible to register a Feature as OSGi service besides resources and providers.
2) The SPI lookup had to be enabled again.
3) I have added a provider (com.eclipsesource.jaxrs.provider.sse
) that registers the SseFeature as a Service.
So, all you have to do now is to start the provider bundle and you are done. Of cause, you have to implemen tyour sse resources too ;)
I have also added an example bundle called com.eclipsesource.jaxrs.sse.example
Even if Jersey let us use SSe (as shown here: https://jersey.java.net/documentation/latest/sse.html ) it is not possible to use it with osgi-jax-rs-connector.
The error shown in the console is the following:
And it seems to depend on a not satisfied dependency: on the official Jersey page we can find the following specification