What is the difference between <osgi: reference> and <osgi: service> in spring DM

what is the difference between <osgi:reference> and <osgi:service> in the xml spring DM configuration file.

+6
source share
1 answer

<osgi:reference> can be used to get a link to an existing OSGi service so your bean can use This.

<osgi:service> can be used to export a bean as an OSGi service so that it can be used by others.

+14
source

Source: https://habr.com/ru/post/907143/


All Articles