Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 64438 invoked from network); 8 Sep 2009 23:05:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Sep 2009 23:05:40 -0000 Received: (qmail 76880 invoked by uid 500); 8 Sep 2009 23:05:40 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 76799 invoked by uid 500); 8 Sep 2009 23:05:39 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 76791 invoked by uid 99); 8 Sep 2009 23:05:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2009 23:05:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 209.85.210.187 as permitted sender) Received: from [209.85.210.187] (HELO mail-yx0-f187.google.com) (209.85.210.187) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2009 23:05:30 +0000 Received: by yxe17 with SMTP id 17so6438698yxe.9 for ; Tue, 08 Sep 2009 16:05:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=ZcR92Z/zR6CaDrcj0wJTrdjH65ADEvHI7rfYHGzOFaw=; b=gPeFmj8Yte1qYs9ph3Fn3dtSgcsrfmIOu+NNduPQcVMeZQs/awehhnA7hEzyMCizC0 Un3+nD8Zz4e4O9J4MhbJkX2OKlg9rVyscw6euE6Vf7gcPtyfRy6bAkMFo2efMS87pKun lvCyT2S3rIlFtzhMA2KQYCldBp3e9VisNDBCE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=K3mmj7uLb1zvKXzIYpUx0E34MXoSgonvcXvWjGV679R0rR/Os3+nSQKMmMnJW8Gx/+ cjlMNRp2vnfbl99o0fthkR4P/MLuPc+YXCaQpcqV4ab0NhgSDHHjVVnWE5ZhoYpcvhkd gwAe7e4PUuiM8Vpr1BpDSf0otXKZWWToLSCf8= Received: by 10.90.16.34 with SMTP id 34mr6109411agp.47.1252451108382; Tue, 08 Sep 2009 16:05:08 -0700 (PDT) Received: from ?192.168.0.1? (vol75-3-82-66-216-176.fbx.proxad.net [82.66.216.176]) by mx.google.com with ESMTPS id 2sm307086aga.58.2009.09.08.16.05.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Sep 2009 16:05:07 -0700 (PDT) Sender: Emmanuel Lecharny Message-ID: <4AA6E322.7000901@nextury.com> Date: Wed, 09 Sep 2009 01:05:06 +0200 From: Emmanuel Lecharny User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Directory startup : what needs to be done... Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I was working on the DirectoryService startup process yesturday. This is called by the DirectoryServiceFactory, and when you launch the integration tests, you get a NPE. The reason we get it is because at some point, we don't have a working directory to look at for the schema. In order to fix this, we just have to inject the SchemaPartition working directory, and we will be set. The question is now to determinate how we will inject this property. The schema partition is initialized only once : if its working directory is empty. In this case, we extract all the existing schema files from a jar, into a directory. Otherwise, we just read this directory, and load the registries. The problem is that we must have a pointer to this working directory, and we don't have any atm. Questions : 1) how do we set the working directory ? 2) when do we set it, assuming that it may be a part of the configuration ? 3) shouldn't it be a static definition ? Right now, all the partitions are stored into the DirectoryService working directory (default to 'server-work'), under a subdirectory using the partition Id (ie, "schema" here for the schema partition). That sounds good to me atm. wdyt ? -- -- cordialement, regards, Emmanuel L�charny www.iktek.com directory.apache.org