I think different projects handle it differently.  The way I do it is if
only one provider loaded will implement the interface then I include the
interface in the provider with a conditional package and leave the api
compile only
http://enroute.osgi.org/tutorial_wrap/212-conditional-package.html  If
multiple providers are going to implement the interface then I will change
the api bundle to a regular bundle to inclusion.

David

On Sat, Feb 3, 2018 at 2:35 PM, Dominik Przybysz via osgi-dev <
osgi-dev@mail.osgi.org> wrote:

> Hi,
> if you know that you may run your bundles in distributed environment and
> want to use Remote Services, your API bundles must be normal bundles.
>
> 2018-02-03 19:12 GMT+01:00 Daniele Pirola via osgi-dev <
> osgi-dev@mail.osgi.org>:
>
>> Hi,
>> I have an Osgi workspace with many bundles with different "types": api,
>> provider and application. I follow enroute tutorials and my api bundles are
>> "compile only" and providers export api packages.
>> Now I would like to use osgi remote services but how can I use api
>> packages in different osgi instances without importing also the provider
>> that export these packages? I have to build another api project that only
>> export packages? Or api "compile only" is not the right thing for remote?
>>
>> Kind regards
>> Daniele
>>
>>
>>
>> _______________________________________________
>> OSGi Developer Mail List
>> osgi-dev@mail.osgi.org
>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>>
>
>
>
> --
> Pozdrawiam / Regards,
> Dominik Przybysz
>
> _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to