Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E8C2442C0 for ; Wed, 8 Jun 2011 04:28:21 +0000 (UTC) Received: (qmail 89182 invoked by uid 500); 8 Jun 2011 04:28:21 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 89144 invoked by uid 500); 8 Jun 2011 04:28:20 -0000 Mailing-List: contact dev-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 dev@geronimo.apache.org Received: (qmail 89137 invoked by uid 99); 8 Jun 2011 04:28:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 04:28:19 +0000 X-ASF-Spam-Status: No, hits=-1998.7 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2011 04:28:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B89B9107BF3 for ; Wed, 8 Jun 2011 04:27:58 +0000 (UTC) Date: Wed, 8 Jun 2011 04:27:58 +0000 (UTC) From: "Ivan (JIRA)" To: dev@geronimo.apache.org Message-ID: <1158401751.2191.1307507278738.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <839522676.2090.1307499238969.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (GERONIMO-5998) Use the implementation configured in system property as the preference while searching the provider in the OSGi registy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GERONIMO-5998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045768#comment-13045768 ] Ivan commented on GERONIMO-5998: -------------------------------- Commit the changes to geronimo-osgi-registry-1.1-SNAPSHOT at rev.1133243 > Use the implementation configured in system property as the preference while searching the provider in the OSGi registy > ----------------------------------------------------------------------------------------------------------------------- > > Key: GERONIMO-5998 > URL: https://issues.apache.org/jira/browse/GERONIMO-5998 > Project: Geronimo > Issue Type: New Feature > Security Level: public(Regular issues) > Components: osgi > Affects Versions: 3.0 > Reporter: Ivan > Assignee: Ivan > Fix For: 3.0 > > > In Geronimo, we always ship two saaj implementation, and in the past, we create wrapper implementations for those SPI, and configure them as system property. In the traditional service search strategy path, the configurations from system property have the highest priority. So we could control which implementation will be used After we switches to OSGi, a locator-registry solution is used for searching all the available service providers. For SAAJ provider, now we have two providers. and it seems that which one will be used is depending on which one is first registered in the global registry. > I am thinking two solutions for this, and I prefer the option b. > a. Introduce the priority feature for the service providers, the implementation could state its priority in the MANIFEST.MF file. > b. Still take advantage of the system property, while the spec API requires the implementation, if the system property is configured and the implementation exists in the registry, use that one. > http://apache-geronimo.328035.n3.nabble.com/How-to-switch-between-the-RI-SAAJ-and-Axis2-SAAJ-td3034398.html -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira