chao luo
chao luo

Reputation: 143

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 config file of spring DM.

Upvotes: 8

Views: 4189

Answers (1)

Matej
Matej

Reputation: 6199

<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.

Upvotes: 16

Related Questions