Binding Multiple Services of same type [message #135848] |
Sat, 18 July 2009 16:31 |
Christian Eugster Messages: 203 Registered: July 2009 Location: St. Gallen Switzerland |
Senior Member |
|
|
Hi,
I do my first steps with the osgi services. I am reading the book "Fir
OSGi Service Platform" by Wütherich/Hartmann/Kolb/Lübken and did work
through all the articles Getting started with OSGi by Neil Bartlett (I
really appreciate both of them). Now my question (I use Galileo):
I wrote a plugin providing an interface for checking bar codes. Several
plugins implement that interface and are declaratively published services.
Another plugin (also declaratively registered services references that
service. The reference informations are
<reference bind="setBarcodeVerifier" cardinality="0..n"
interface="ch.eugster.colibri.barcode.service.BarcodeVerifier "
name="BarcodeVerifier" policy="dynamic" unbind="unsetBarcodeVerifier"/>
starting the osgi framework, the "client" bundle binds only the first
BarcodeVerifier bundle, the others seem to be ignored although the
cardinality is set to 0..n.
The implementations are running as services (as I found out with the
command 'services', but they do not bind the "client". A ranking ist not
set for any of them.
I did not find any explanation anywhere and hope somebody can give me a
hint.
Thanks!
Christian
|
|
|
Powered by
FUDForum. Page generated in 0.03247 seconds