users@jersey.java.net

[Jersey] OSGiRegistry issue with 1.17

From: <allen.lau_at_gmail.com>
Date: Mon, 18 Feb 2013 21:44:49 +0000 (GMT)

Hi,

Currently trying out Jersey with Felix and found that if I try to use
Jersey in more than one WAB, then there is a race condition when using
the Package Scanner mechanism.
Looking at the OSGiRegistry source, the classToMappingBundle is called
once for each WAB.
If I have 2 WAB in the container, then only the last initialized WAB's
services are visible.

Looks like a bug to me? Or am I using the Package Scanner mechanism in
correctly.

Thanks,
Allen