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 >

