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 <[EMAIL PROTECTED]> 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

Reply via email to