Hi Allen,
it looks like a bug. Can you, please, file a bug to our Jira ([1])?
[1]
http://java.net/jira/browse/JERSEY
thanks,
Michal
On 18.02.2013 22:44 , allen.lau_at_gmail.com wrote:
> 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