Return-Path: Delivered-To: apmail-directory-api-archive@minotaur.apache.org Received: (qmail 15401 invoked from network); 5 Aug 2010 22:37:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Aug 2010 22:37:09 -0000 Received: (qmail 69040 invoked by uid 500); 5 Aug 2010 22:37:09 -0000 Delivered-To: apmail-directory-api-archive@directory.apache.org Received: (qmail 69004 invoked by uid 500); 5 Aug 2010 22:37:09 -0000 Mailing-List: contact api-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: api@directory.apache.org Delivered-To: mailing list api@directory.apache.org Received: (qmail 68994 invoked by uid 99); 5 Aug 2010 22:37:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 22:37:09 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of elecharny@gmail.com designates 74.125.82.178 as permitted sender) Received: from [74.125.82.178] (HELO mail-wy0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Aug 2010 22:37:01 +0000 Received: by wyb34 with SMTP id 34so9133336wyb.37 for ; Thu, 05 Aug 2010 15:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=GkJRapwt1GGY8gy8qDtkn5cisWqJbnBsH8hntuxEgwc=; b=c6eBKCAdcn4wVcNrsuis92D81ce/sFNm43lfcfyVuz6PmnLdQITFW+DoL59ZRj6UUu ME9dZJavv4mQAbbir7K/pzA2nQd3itujsN8iuXJcAz8f4djstvv2mcZQUAR0XipH+U+i 2lorHdVRzbBE6bFbhmNMZ0X6gxcanAJ3ZnNeU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=JZyPb0dMqCZN1smtQqyqEwwNhSVNzfRM0EcvU57XI1jCVut4RvxfSt+2iYUfJ3UTfy g8Cg7xMuLG2EelX3LxpDSgWs+WQuSzspjZ4FhdMCf9aUvYl6oh+hsMSR+wVXOI8qQQwF HEfVgZirlNSx2Isuo/9eR5MAAYdz3Rr3KtuHs= Received: by 10.227.137.81 with SMTP id v17mr9914577wbt.10.1281047800070; Thu, 05 Aug 2010 15:36:40 -0700 (PDT) Received: from emmanuel-lecharnys-MacBook-Pro.local ([78.192.106.184]) by mx.google.com with ESMTPS id i25sm626646wbi.22.2010.08.05.15.36.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 05 Aug 2010 15:36:39 -0700 (PDT) Message-ID: <4C5B3D94.8010405@gmail.com> Date: Fri, 06 Aug 2010 00:39:16 +0200 From: Emmanuel Lecharny Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 To: api@directory.apache.org Subject: Re: Some thoughts I had under my shower this morning... References: <4C5AD7DE.6050002@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 8/5/10 8:31 PM, Alex Karasulu wrote: > we do have a workaround/fix for this (by setting a special VM option >> specifying the location of the >> schema directory or the jar file in which schema files are present) >> >> > This workaround IMHO is sufficient for embedding into containers. I would > not alter the whole server schema loading behavior just for this very > special case. > > Alex > IMO, this is barely acceptable for API 0.2, but has to be fixed for 0.3. There is no reason to extract to disk when all the ldifs are available in a jar, as it's just a matter of loading them in memory. It should be a 2 hours work to get the code read the jar and load the schema in memory... -- Regards, Cordialement, Emmanuel L�charny www.iktek.com