From dev-return-10936-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Thu Feb 02 02:10:41 2006 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 18895 invoked from network); 2 Feb 2006 02:10:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Feb 2006 02:10:40 -0000 Received: (qmail 374 invoked by uid 500); 2 Feb 2006 02:10:38 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 284 invoked by uid 500); 2 Feb 2006 02:10:38 -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 234 invoked by uid 99); 2 Feb 2006 02:10:37 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2006 18:10:37 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of trustin@gmail.com designates 64.233.182.196 as permitted sender) Received: from [64.233.182.196] (HELO nproxy.gmail.com) (64.233.182.196) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Feb 2006 18:10:36 -0800 Received: by nproxy.gmail.com with SMTP id n28so2382nfc for ; Wed, 01 Feb 2006 18:10:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Z5AHS0UtacZfy1asUTCLuA4H2ZJQOoZkBbl1c5G/xZGQE3ADCWGuvkwdyRNyq4AiqZzPO1bVkvg6JXHWQecMX6gqz00GweYmaYCCm9Vf1jnYdQdDyWZHgRDIArak2fV6htjSC9TRf7v1h0Ld6qUlAL1hKcSa+9+5hOJDkuvfTOo= Received: by 10.48.157.2 with SMTP id f2mr46724nfe; Wed, 01 Feb 2006 18:00:03 -0800 (PST) Received: by 10.49.19.19 with HTTP; Wed, 1 Feb 2006 18:00:03 -0800 (PST) Message-ID: <768dcb2e0602011800q11a15034t@mail.gmail.com> Date: Thu, 2 Feb 2006 11:00:03 +0900 From: Trustin Lee To: Apache Directory Developers List Subject: Re: custom partition Cc: "Gunter, Tony" In-Reply-To: <369BADA345060446A2100384D9ACA2F801FFFC@becxoex24.corp.kpmgconsulting.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5775_25488051.1138845603383" References: <369BADA345060446A2100384D9ACA2F801FFFC@becxoex24.corp.kpmgconsulting.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_5775_25488051.1138845603383 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello Tony, I'm sorry for the late response. It was our traditional holiday recently. 2006/1/24, Gunter, Tony : > > I realize that you're probably very busy, but I was wondering if you > could point me in the right direction for creating a custom partition tha= t > would utilize JDBC for LDAP lookups. I realize this will be a bit slow, = and > that's okay for this application. And I realize that I will need to plac= e > my JDBC code in a class that extends AbstractDirectoryPartition. But how > will this class be referenced by ApacheDS? > There's a configuration API you need to specify when you start up the server. Those classes are located in the pacakge 'configuration'. You ca= n add your own custom partitions using DirectoryPartitionConfiguration. Please take a look at the test case source codes which demonstrates how to use custom partitions. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ PGP Key ID: 0x854B996C ------=_Part_5775_25488051.1138845603383 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello Tony,

I'm sorry for the late response.  It was our tradit= ional holiday recently.

2006/1/24, = Gunter, Tony <tony.gunte= r@bearingpoint.com >:

I realize that you're probably very busy, but I was wondering if you could point me in the right direction for creating a custo= m partition that would utilize JDBC for LDAP lookups.  I realize this wi= ll be a bit slow, and that's okay for this application.  And I realize that I will need to place my JDBC code in a class that extends AbstractDirectoryPartition.  But how will this class be referenced by = ApacheDS?


There's a configurat= ion API you need to specify when you start up the server.  Those class= es are located in the pacakge 'configuration'.   You can add your= own custom partitions using DirectoryPartitionConfiguration.  Please = take a look at the test case source codes which demonstrates how to use cus= tom partitions.

HTH,
Trustin
--
what we call human nature is actu= ally human habit
--
http://gleamyn= ode.net/
PGP Key ID: 0x854B996C ------=_Part_5775_25488051.1138845603383--