Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is the JNDI InitialLdapContext thread safe?

160 views
Skip to first unread message

Achim von Neefe

unread,
Jan 24, 2000, 3:00:00 AM1/24/00
to
In Sun's LDAP provider the context class is not thread safe. We are
using Netscape's provider and I'm wondering whether I have to
synchronize the access.

Achim

--
Achim von Neefe
ac...@nightfire.com
http://www.nightfire.com

Miodrag Kekic

unread,
Jan 27, 2000, 3:00:00 AM1/27/00
to Achim von Neefe
Netscape's provider is written to match JNDI SPI reentrancy
requirements: a context instance need not to be reentrant, but different
context instances are safe for concurrent multithreaded access.

This means that two threads operating concurrently on the same, shared,
context instance should synchronize their access, but two threads each
operating concurrently on its own context instance do not require
synchronization.

Miodrag

0 new messages