Daniel John Debrunner wrote:
Silly question. Would an interned string allow synchronization across classloaders?Actually string constants are by definition interned, so synchronized(DERBY_JVM_ID) is the same as synchronized(DERBY_JVM_ID.intern()) since DERBY_JVM_ID is a reference to a string constant. Though using intern() wouldn't harm and might make the code more readable.
If not, how do I synchronize two threads using different classloaders. Kathey
