directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <>
Subject Re: @CreateDS
Date Fri, 16 Sep 2011 21:37:46 GMT
On Fri, Sep 16, 2011 at 8:49 PM, Jonathan Carlson <> wrote:
> I'm probably not as familiar with the differences between these as I should be but I
can't seem to find it in the documentation.
> What is the difference between
> @CreateDS(name = "SampleDS", allowAnonAccess = true)
> and
> @CreateLdapServer(
> allowAnonymousAccess = true,
> transports = { @CreateTransport(protocol = "LDAP") })

@CreateDS only creates and start the "core" server. There is no
network layer started. You only have access to the DirectoryService
but there is also an JNDI DirContext implementation available.

@CreateLdapServer starts the "core" server and also the LDAP network protocol.

If you want to write integration tests for your custom code and you
use e.g. JNDI than you should use the latter because it is closer to
your real environment and communicates over the the wire.

Kind Regards,

View raw message