Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 31488 invoked from network); 15 Jul 2009 21:30:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jul 2009 21:30:52 -0000 Received: (qmail 66643 invoked by uid 500); 15 Jul 2009 21:31:02 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 66568 invoked by uid 500); 15 Jul 2009 21:31:01 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 66559 invoked by uid 99); 15 Jul 2009 21:31:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 21:31:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2009 21:30:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4427F23889E7; Wed, 15 Jul 2009 21:30:37 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r794422 - /geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/ServiceRecipe.java Date: Wed, 15 Jul 2009 21:30:37 -0000 To: scm@geronimo.apache.org From: gawor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090715213037.4427F23889E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: gawor Date: Wed Jul 15 21:30:36 2009 New Revision: 794422 URL: http://svn.apache.org/viewvc?rev=794422&view=rev Log: don't set SERVICE_RANKING property when ranking is 0 Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/ServiceRecipe.java Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/ServiceRecipe.java URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/ServiceRecipe.java?rev=794422&r1=794421&r2=794422&view=diff ============================================================================== --- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/ServiceRecipe.java (original) +++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/container/ServiceRecipe.java Wed Jul 15 21:30:36 2009 @@ -142,7 +142,11 @@ properties = (Map) createRecipe(propertiesRecipe); } props.putAll(properties); - props.put(Constants.SERVICE_RANKING, metadata.getRanking()); + if (metadata.getRanking() == 0) { + props.remove(Constants.SERVICE_RANKING); + } else { + props.put(Constants.SERVICE_RANKING, metadata.getRanking()); + } String componentName = getComponentName(); if (componentName != null) { props.put(BlueprintConstants.COMPONENT_NAME_PROPERTY, componentName);