I use the JDOM library to read and write XML files through Java Servlets.
The problem is that when I send a lot of requests using AJAX for my servlets that read and write data in XML files, many times it does not show an error: premature end of the file. How can I sync all these reads / writes to files, or is there any other way to prevent this problem? Let me know if more details are required.
Will threads be used in this situation?
Thanks a lot!
source
share