is JAXP threadsafe
Hi,
I am writing a server application in Java which will read a XML file and maintain its DOM structure in memory. This DOM structure will be accessed by multiple threads simultaneously. Some of the threads may modify some nodes. I do not want any thread which is reading a part of the DOM to read partically modified nodes.
Is there any way to lock access to a particular node in a DOM tree. The JAXP documentation does not mention if the methods are synchronized.
Will I have to write a wrapper class around my DOM tree which has synchronized methods ?
Most of the threads will be performing read operation, I do not want the performance of the read operations to suffer because of synchronizing the methods in the wrapper.
Please let me know if you have a solution.
Regards,
Manvendra

