8

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

skaffman
  • 398,947
  • 96
  • 818
  • 769
chao luo
  • 143
  • 1
  • 2
  • 7

1 Answers1

16

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

Matej
  • 6,004
  • 2
  • 28
  • 27