This content has been marked as final.
Show 1 reply
-
1. Re: JBossNS not thread-safe?
starksm64 Jul 29, 2004 11:26 AM (in response to sysuser1)No, from the javax.naming.Context javadoc:
Concurrent Access
A Context instance is not guaranteed to be synchronized against concurrent access by multiple threads. Threads that need to access a single Context instance concurrently should synchronize amongst themselves and provide the necessary locking. Multiple threads each manipulating a different Context instance need not synchronize. Note that the lookup method, when passed an empty name, will return a new Context instance representing the same naming context.
For purposes of concurrency control, a Context operation that returns a NamingEnumeration is not considered to have completed while the enumeration is still in use, or while any referrals generated by that operation are still being followed.