Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 77DC074B8 for ; Mon, 12 Sep 2011 12:00:36 +0000 (UTC) Received: (qmail 37818 invoked by uid 500); 12 Sep 2011 12:00:27 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 35325 invoked by uid 500); 12 Sep 2011 12:00:00 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 35140 invoked by uid 99); 12 Sep 2011 11:59:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2011 11:59:50 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.212.53] (HELO mail-vw0-f53.google.com) (209.85.212.53) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2011 11:59:44 +0000 Received: by vws13 with SMTP id 13so3843225vws.12 for ; Mon, 12 Sep 2011 04:59:23 -0700 (PDT) Received: by 10.52.22.83 with SMTP id b19mr2568841vdf.33.1315828763148; Mon, 12 Sep 2011 04:59:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.159.162 with HTTP; Mon, 12 Sep 2011 04:59:03 -0700 (PDT) From: Shai Amar Date: Mon, 12 Sep 2011 13:59:03 +0200 Message-ID: Subject: iPOJO and service ranking To: users@felix.apache.org Content-Type: multipart/alternative; boundary=20cf307811a203416a04acbd42d9 --20cf307811a203416a04acbd42d9 Content-Type: text/plain; charset=ISO-8859-1 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? -- Regards Shai Amar Technologies manager, Founder Krynnlance www.krynnlance.com www.backapps.com --20cf307811a203416a04acbd42d9--