Hello Costin
Thanks again for your time and reply
I'm not sure what you're asking.
Again my english is not well
I mean this (If I am wrong pls correct me)
For instance
I have a bundle called "A" and has this
Code:
<service ref="beanToBeExported" interface="com.xyz.MyServiceInterface" />
see that ranking doesnt exists yet
and other bundle called "B" that has this
Code:
<osgi:reference id="beanToBeExported" interface="com.xyz.MyServiceInterface"
and furthermore "B1","B2" with the same code that above
Until here bundles "B" "B1" "B2" must work with service from "A"
After a time I create a bundle called A1 but with this
Code:
<service ref="beanToBeExported"
interface="com.xyz.MyServiceInterface"
ranking="2"
/>
and again other bundle called "C" that has this
Code:
<osgi:reference id="beanToBeExported" interface="com.xyz.MyServiceInterface"
According with the documentation about ranking attirbute
bundle "C" should work with service of bundle "A1"
However with this new bundle A1 with its ranking attributte it affects to my previous bundles (B,B1,B2) because: bundle "A" has no the ranking attributte,
but bundle "A1" yes, bundles "B" "B1" "B2" now should work with "A1",
am I right?
But If I want keep my old rule which is
bundles "B" "B1" "B2" must work with service from "A" ,
I must use <osgi:reference filter="(service.ranking=1)" ...>
for each Bundle B and after this therefore I must go to bundle "A" and add ranking="1" ?
Am I correct?
Now Imagine the situation if I 50 bundles of type B
Is mandatory change the code adding the filter right for all them right?
I hope you see my point now
Now according with your last explanation, your new solutions how could resolve this situation
Thanks in advanced