That is really a question for the JAX-RS 2.0 expert group. We have
discussed
this yesterday with Marek Potociar, who is the JAX-RS 2.0 co-lead. He should
be aware of this issue.
~Jakub
On 05/30/2011 05:11 PM, Ryan Stewart wrote:
>
> The *common* javax.ws.rs.* is the issue here, which we would like
> to avoid.
> The javax.ws.rs.ext.RuntimeDelegate class keeps the runtime
> delegate instance reference
> in a static variable, i.e. as long as various JAX-RS
> implementations share a single
> javax.ws.rs.ext.RuntimeDelegate class, they also share the very
> same runtime delegate
> instance.
>
> I see. Is there any hope of a solution to this? Might JAX-RS 2.0
> provide a better way? Or couldn't a RuntimeDelegate instance be
> designed that's capable of managing resources across multiple bundle
> versions? i.e. build a RuntimeDelegate that gets installed once, and
> afterward updates the installed instance with new delegate objects
> keyed off of the ClassLoader from which it was created?