directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Ersoy <ole.er...@gmail.com>
Subject Re: [JNDI] Creating SubcontextS
Date Mon, 02 Apr 2007 20:53:08 GMT
Hey Enrique, Stefan,

Great to know that it's not a bug :-)
That makes life a little easier.

I like "recursive (sort of)" createSubcontext statement
as well.  Great for code generation!

Thanks again,
- Ole


Enrique Rodriguez wrote:
> 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