Hi ppl, here is the pblm: I have 2 OSGi service I'm exposing in a given bundle:
Now, I want to wire these two services. I can't do it as I usually do: by simple interface induction. So I'm trying to do:Code:<osgi:service id="myOsgiService" interface="com.my.company.SomeDao" ref="daoImplConfig1" /> <osgi:service id="myOsgiService2" interface="com.my.company.SomeDao" ref="daoImplConfig2" />
However, both end up being null, not injected.Code:@ServiceReference(serviceBeanName="myOsgiService") public void setDao(SomeDao someDao) { ... } // AND @ServiceReference(serviceBeanName="myOsgiService2") public void setOtherDao(SomeDao someDao) { ... }
Am I using the annotation correctly? (I do have the annotation post-processor in my context).
Thanks for your help.
JS.



