Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 37244 invoked from network); 11 Apr 2007 18:16:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Apr 2007 18:16:45 -0000 Received: (qmail 5395 invoked by uid 500); 11 Apr 2007 18:16:50 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 5363 invoked by uid 500); 11 Apr 2007 18:16:50 -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 5348 invoked by uid 99); 11 Apr 2007 18:16:50 -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 11:16:50 -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.239 as permitted sender) Received: from [66.249.82.239] (HELO wx-out-0506.google.com) (66.249.82.239) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2007 11:16:43 -0700 Received: by wx-out-0506.google.com with SMTP id h31so297046wxd for ; Wed, 11 Apr 2007 11:16:23 -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=hHv7z67eW3s9gu1K/EecDmbwO2I3EjG1KETcwjamPS/qY3VD4qmMTEMN3HR1kdZU8S8lLWxfk6pL+kb4IHKhHOHgUTZbRRLuKQ4YOwv4jjth7P6JfQlgZb0BoCBIFiR2DIgMqLQo5OcIKB49W45wdR5kb+5DShZdAEOKojLO9C4= 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=s21qbix5yi7SSzJiY0dSsNiVgkuSNc/q9QKJ7YsuJhxsLoUKYISjuwTfpS2oZBPIj1qWN+CtLahYWtseblG92LWRXKcjKLZbbogwkhfw0GwNEOnrW4hF7TMy4bxWaBK/bhM4C3dbMeoK0R6ZqWKvHkpAkR7q3tvWssUQ3nRWFdc= Received: by 10.90.27.13 with SMTP id a13mr933768aga.1176315382834; Wed, 11 Apr 2007 11:16:22 -0700 (PDT) Received: from ?192.168.1.24? ( [24.13.179.233]) by mx.google.com with ESMTP id 38sm199725nza.2007.04.11.11.16.14; Wed, 11 Apr 2007 11:16:19 -0700 (PDT) Message-ID: <461D24E4.9080508@gmail.com> Date: Wed, 11 Apr 2007 13:11:48 -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> <461D1EE7.9030601@gmail.com> <461D2390.5050502@labeo.de> In-Reply-To: <461D2390.5050502@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 Hey Stefan! Aha - That helps a great deal! Cool - I should be well on my way now. Thanks again, - Ole Stefan Zoerner wrote: > Ole Ersoy wrote: >> >> Something like >> ctx.getChildren()...which would delegate to how jndi does this... >> ctx.getChild(name).... > > Hi Ole! > > For looking up children I would recommend to use the list or > listBindings methods. If you need the children of ctx, you can simply > call ctx.listBindings(""), something like this (no compilation done) > > NamingEnumeration enm = ctx.listBindings(""); > while (enm.hasMore()) { > Binding b = (Binding) enm.next(); > if (b.getObject() instanceof Context) { > Context child = (Context) b.getObject(); > } > } > > Greetings from Hamburg, > Stefan > > >