Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 29579 invoked from network); 11 Apr 2007 17:50:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Apr 2007 17:50:56 -0000 Received: (qmail 44854 invoked by uid 500); 11 Apr 2007 17:51:01 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 44810 invoked by uid 500); 11 Apr 2007 17:51:01 -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 44799 invoked by uid 99); 11 Apr 2007 17:51:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2007 10:51:01 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ole.ersoy@gmail.com designates 66.249.82.236 as permitted sender) Received: from [66.249.82.236] (HELO wx-out-0506.google.com) (66.249.82.236) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2007 10:50:54 -0700 Received: by wx-out-0506.google.com with SMTP id h31so288318wxd for ; Wed, 11 Apr 2007 10:50:32 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=dXtb8GNHVu+huAEwml2XJ89aSIJYQGSqC4/IP0B4ryd9siUzMw9sk8CDp4iZ7IIBovfTlYyUc2+HTln4fmsj+eofCv0wwpJCddN/FNlYsj+D/mRDVvvZMoQBFJ6IyGBzDD17eNvIirvHMcaXUPbSFA8Q4iBCU2jOLEdZ+y0oMHc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=bCTbpYDntw5DbpeV1N8dDi9mnym6GxvI1yMp4KZwGEBg0erry73hnA1mrGYyXppd7skmxg1mfz9RlFJn1kQgyEULZb9/ynPyC2pnEJLLg3rfnOMGRt2XfGs+ycqt/le7qiBHjhZywI/GrTVYgXxfiNPJSnmAKBWTXyTu79ij/Pc= Received: by 10.90.93.6 with SMTP id q6mr877114agb.1176313832466; Wed, 11 Apr 2007 10:50:32 -0700 (PDT) Received: from ?192.168.1.24? ( [24.13.179.233]) by mx.google.com with ESMTP id 12sm98299nzn.2007.04.11.10.50.30; Wed, 11 Apr 2007 10:50:31 -0700 (PDT) Message-ID: <461D1EE7.9030601@gmail.com> Date: Wed, 11 Apr 2007 12:46:15 -0500 From: Ole Ersoy User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [JNDI] Navigating the DIT References: <461D0EB0.2040508@gmail.com> <461D1B6D.5000002@labeo.de> In-Reply-To: <461D1B6D.5000002@labeo.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Stefan, Thanks - I've read it a few times, and kept scanning it again last night to see whether I could find something that did what I wanted, but it seemed like all the bind stuff was for binding java objects, and the lookup stuff for looking up Java Objects... I was really looking for something like a DOM API layer on top of JNDI maybe, so that it would be easy to look for kids or a kid. Something like ctx.getChildren()...which would delegate to how jndi does this... ctx.getChild(name).... So since an entry does not store knowledge of children, the jndi code that is delegated to would have to figure out who the children are per some definition of children... I know there's a similar concept to this in the SWT JFace Tree Viewer, I think the ItemAdapter stores knowledge of what is considered an instance's children, and the LabelAdapter is used to come up with the label displayed in the tree node. Anyways, I'll give the lookup method a shot, and then probably create a layer like this so I can get around the DIT a little more nimbly. Thanks, - Ole Stefan Zoerner wrote: > Ole Ersoy wrote: >> Does anyone know if there's a utility or something >> for navigating a DIT...like >> >> ctx = ctx.getChild(rdn)? >> >> Which would return a new DirContext >> bound to the child rdn? > > Hi Ole, > > for general JNDI concepts, the tutorial from Sun is quite helpful, see > http://java.sun.com/products/jndi/tutorial/ > for details. > > Greetings from Hamburg, > Stefan > >