Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Binding Multiple Services of same type
Binding Multiple Services of same type [message #135848] Sat, 18 July 2009 16:31
Christian Eugster is currently offline Christian EugsterFriend
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
Previous Topic:[p2] Updating the target platform directory
Next Topic:P2 Question
Goto Forum:
  


Current Time: Wed Apr 24 20:52:13 GMT 2024

Powered by FUDForum. Page generated in 0.03247 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top