Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 69972 invoked from network); 11 Aug 2006 14:32:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2006 14:32:49 -0000 Received: (qmail 63554 invoked by uid 500); 11 Aug 2006 14:32:46 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 63515 invoked by uid 500); 11 Aug 2006 14:32:45 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 63503 invoked by uid 99); 11 Aug 2006 14:32:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2006 07:32:45 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gshimansky@gmail.com designates 66.249.82.230 as permitted sender) Received: from [66.249.82.230] (HELO wx-out-0506.google.com) (66.249.82.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Aug 2006 07:32:44 -0700 Received: by wx-out-0506.google.com with SMTP id s13so708501wxc for ; Fri, 11 Aug 2006 07:32:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=rMlFCDFKnljhzBHswCc1d4XH7/70pG9RW6TJTrp5Ba01LoqlxZviBf/B9f58hxxBowev8fyaSBCgK5vmFEk0LXmNmeUyWztwqsXynz6lmS+Cg7W8NBc85KtFHbxopApCzWedn+qL0HL7mHtXoo3o9IGRma6Cy7JQImXM9+/X4co= Received: by 10.70.74.1 with SMTP id w1mr5130852wxa; Fri, 11 Aug 2006 07:32:24 -0700 (PDT) Received: by 10.70.21.3 with HTTP; Fri, 11 Aug 2006 07:32:15 -0700 (PDT) Message-ID: <208da7a50608110732v602724bbva1c552bb4b511d1b@mail.gmail.com> Date: Fri, 11 Aug 2006 18:32:15 +0400 From: "Gregory Shimansky" To: harmony-dev@incubator.apache.org Subject: Re: [classlib] [ldap] support for multiple VMs? In-Reply-To: <44DC530E.7060005@gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_44059_2947168.1155306735924" References: <006401c6bc9c$d72b0a40$d500a8c0@neosur.com> <44DC530E.7060005@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_44059_2947168.1155306735924 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 2006/8/11, Tim Ellison : > > Daniel Gandara wrote: > > Hi all, > > > > We are working on the javax.naming.ldap and we are facing the > > following issue when thinking about supporting multiple VMs. > > Following the SPEC there is a method createExtendedResponse in the > > StartTlsRequest class which states that the returning object must be > > an instance of a concrete subclass of StartTlsResponse and must have > > a public zero-argument constructor. The concrete subclass is > > determined by reading the configuration file located in > > META-INF/services/javax.naming.ldap.StartTlsResponse (see > > > http://java.sun.com/j2se/1.5.0/docs/api/javax/naming/ldap/StartTlsRequest.html > ) > > > > The search for this configuration file is done by looking in the > > classpath, java.home and user.dir; also the Xbootclasspath should be > > inspected, and that seems to be a problematic situation, since there > > is not a standard property to look for its value. Different VM > > implementations have different property names for the boot class path > > value. In the old Harmony VM implementation was > > com.ibm.oti.system.class.path; in the new one is > > org.apache.harmony.boot.class. The property name in the Sun's VM is > > sun.boot.class.path. We are wondering which property name to use in > > the code. At first sight the Harmony new VM implementation property > > seems to be the better option, but maybe looking for the other > > properties will be interesting for compatibility purposes. > > > > We would be very interested in opinions. > > I'd ignore the com.ibm property and look through the path defined by > org.apache.harmony.boot.class.path > > I don't know what property is set by the DRLVM / JCHEVM / etc., but it > would be good if they set the same property (maybe in addition to their > current property). DRLVM sets two propeties with the same value. The one which is used by VM is vm.boot.class.path and another added for compatibility with some applications is sun.boot.class.path. It is not used inside of VM. I compared values with org.apache.harmony.boot.class.path with is set in classlib luni and foind that the only difference is with kernel.jar absent in it and present in DRLVM properties. It is logical because they both read the same bootclasspath.properties file but VM also adds kernel.jar before everything. I wonder if DRLVM starts to use the same org.apache.harmony.boot.class.pathproperty wouldn't it be overwritten with luni initialization with value wihout kernel.jar? If you want the code to run on the Sun implementation too then you > should *also* search the sun.boot.class.path, and of course be tolerant > of o.a.harmony... or sun.boot... being absent. Is running on Sun a goal > for you? It's not something that we would require for including the > LDAP code in Harmony. > > Regards, > Tim > > -- Gregory Shimansky, Intel Middleware Products Division ------=_Part_44059_2947168.1155306735924--