Question

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

Était-ce utile?

La solution

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

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top