On Oct 27, 2009, at 2:45 PM, Louis Polycarpou wrote:
> I am looking into various ways of deploying JAX-RS resources as OSGi
> bundles. One use case is to have an ecosystem where developers can
> hot-deploy new resources without requiring an application restart.
> Is there any reason that this would not be a feasible requirement?
>
Deploying a new resource given an existing set of resources will
require a reload of the Jersey application because Jersey creates a
runtime model to reduce reflection operations.
There are some APIs to enable reloading [1]. And i suspect you can
integrate that into the bundle listening of OGSi.
> When will Jersey be available as an OSGi bundle and will there be
> any examples / guides for using Jersey with an OSGi runtime such as
> Felix?
>
In 1.1.5. Which will be after we have released 1.1.4 for GF v3.
We had hoped to get this in for 1.1.4 but we did not have the
resources as they are currently focused on GF v3 integration.
Jakub will be working on this based on Richard's work and James
direction on testing. Any help is much appreciated.
Paul.
[1]
https://jersey.dev.java.net/nonav/apidocs/1.1.2-ea/jersey/com/sun/jersey/spi/container/ContainerListener.html
https://jersey.dev.java.net/nonav/apidocs/1.1.2-ea/jersey/com/sun/jersey/spi/container/ContainerNotifier.html