Thanks. I have looked into it ( http://felix.apache.org/site/providing-osgi-services.html) and saw that I can add in the metadata.xml file properties to the <provides> label.
Regards Shai Amar On Mon, Sep 12, 2011 at 6:39 PM, Richard Hall <[email protected]> wrote: > On Mon, Sep 12, 2011 at 4:59 AM, Shai Amar <[email protected]> > wrote: > > > Hi all > > > > Currently, I've implemented 2 iPOJO modules that implements the same > > Interface module. > > The first one is *PrimaryImpl*, and the second one is *BackupImpl*. > > > > I also have a client module that uses these modules with the * > > dynamic-priority* policy. > > > > I know that if a higher ranked service appears it will replace any lower > > ranking service already injected into the component. > > > > The question is how do I set the service ranking? > > > > If I'm declaring the service, I can add the service.ranking as a > property. > > But, since the iPOJO declares this service, how can I set the service > > ranking of these modules? > > > > iPOJO still lets you set service properties. If you are using XML or > annotations, just look in the docs are you'll see that you can set service > properties in either approach. > > -> richard > > > > > > -- > > Regards > > > > Shai Amar > > > > Technologies manager, Founder > > Krynnlance > > www.krynnlance.com > > www.backapps.com > > > -- Regards Shai Amar Technologies manager, Founder Krynnlance www.krynnlance.com www.backapps.com

