Use the target attribute in reference, it contains a filter expression, see the 
spec. You can even override this target attribute in the Configuration Admin if 
needed.

Kind regards,

        Peter Kriens





On 19 jan 2011, at 13:47, David Conde wrote:

> Hi,
> 
> 
> 
> I have a service MyService which is waiting for another service
> ManagerService to be activated. The problem is that there are more than one
> ManagerService in the platform so the first ManagerService ACTIVE will call
> the method bindManagerService(ManagerService ms) from MyService and this
> will activate MyService. The problem is that I do not want any of them but I
> need the ManagerService whose property is TECH=AAA (which is specified in
> the component.xml of the ManagerService right).
> 
> 
> 
> In this way, in order to get the ManagerService whose property is TECH=AAA
> and not other one, I specified in the component.xml of my service in the
> "target" field the next LDAP filter:    (TECH="AAA") , the problem is that
> MyService is never satisfied since it does not find a ManagerService with
> this property.
> 
> 
> 
> How could I specified the one that I need in the component.xml in order to
> active MyService just when the ManagerService that I am waiting for is
> ACTIVE?
> 
> 
> 
> Thank you in advance
> 
> 
> 
> Best Regards
> 
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev


_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to