Hi Dominique, You could look into OSGi Application Subsystems (OSGi Enterprise Spec 5 chapter 134). Application subsystems provide separate namespaces and by default don't share out services. Other subsystem types include Feature subsystems (where everything is shared) and Composite subsystems where you define explicitly what is shared and what is not.
I wrote a blog a while ago on how to get Apache Aries subsystems running on Apache Felix, which might be useful: http://coderthoughts.blogspot.com/2014/01/osgi-subsytems-on-apache-felix.html Alternatively you can create your own service namespaces by using OSGi Service Registry hooks, but these are a bit more low-level than subsystems... Best regards, David On 15 July 2014 21:23, Dominique Pfister <[email protected]> wrote: > Hi, > > > I'd like to setup two distinct Oak repositories in the same VM, each > containing an OSGI whiteboard. > > > Looking at the components inside oak-core that announce their availability > using this whiteboard and the way the registration is implemented in the OSGI > whiteboard, I was wondering whether above setup is possible without causing a > clash in the OSGI service registry. If so, what would be the easiest way to > create separate "namespaces" where every component is automatically > associated with its designated whiteboard? > > > Kind regards > > Dominique
