Hi again!, The problem was the file access concurrency in many servlet instances because when I managed several instances at the same time I could not synchronize them.
The solution: I created a file access class and in each servlet request I look for it in the JNDI service. If it exists I use it (A synchronized method) and if not I create one instance and bind it. Many TX. -----Mensaje original----- De: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]En nombre de Lindsay, William (USPC.PCT.Hopewell) Enviado el: jueves, 04 de octubre de 2001 14:18 Para: [EMAIL PROTECTED] Asunto: Re: Servlet accessing XML Document (PROBLEM WITH CONCURRENCY) Maybe I'm not understanding the issue, but have you tried wrapping the MODIFYING code with a synchronized { modify XML doc.... } block ? Bill -----Original Message----- From: Alberto Imedio [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 5:25 AM To: [EMAIL PROTECTED] Subject: Re: Servlet accessing XML Document (PROBLEM WITH CONCURRENCY) I did not find any solution. The concurrence is not controlled :-(. TX ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
