directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrique Rodriguez" <enriqu...@gmail.com>
Subject Re: [JNDI] Creating SubcontextS
Date Mon, 02 Apr 2007 20:10:20 GMT
On 4/2/07, Stefan Zoerner <stefan@labeo.de> wrote:
> Ole Ersoy wrote:
> > In this case I just need the entry
> > "cn=test, cn=test1, cn=test2, ou=system"
> > to exist, before attempting to store a DataGraph,
> > and I discovered that ApacheDS
> > lets me do
> >
> > ctx.createSubcontext("cn=whatever");

You should be able to do:
ctx.createSubcontext("cn=test2").createSubcontext("cn=test1").createSubcontext("cn=test");

... because createSubcontext() returns the newly created subcontext as
a DirContext.

Enrique

Mime
View raw message