felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Hall <he...@ungoverned.org>
Subject Re: iPOJO and service ranking
Date Mon, 12 Sep 2011 16:39:07 GMT
On Mon, Sep 12, 2011 at 4:59 AM, Shai Amar <shai.amar@krynnlance.com> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message