RE: Multiple requests to the same servlet is problem
No, but i store my database connection into a Session Attribute with servlet´s name. Now i now that´s reason for my problem, i´ll try to use JNDI DataSource, i hope it helps. -- De: [EMAIL PROTECTED]:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quarta-feira, 29 de outubro de 2003 9:55 Para: Tomcat Users List Assunto: Re: Multiple requests to the same servlet is problem Can you post the servlet code? Are you using global variables in you logic? If so, you probably have a threading issue. On Wednesday 29 October 2003 08:07 am, you wrote: Hello folks, i have one page with iframes, each iframe has a GET request, to a servlet that must bring description for a product code, and therefore each iframe has a different request like: url=/osctrl/exec/ProductDescription?code=478541.1 But when tomcat seems to confuse those three request and all of then display errors or the first request is displayed for all! Why does this happen? Regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multiple requests to the same servlet is problem
Hello folks, i have one page with iframes, each iframe has a GET request, to a servlet that must bring description for a product code, and therefore each iframe has a different request like: url=/osctrl/exec/ProductDescription?code=478541.1 But when tomcat seems to confuse those three request and all of then display errors or the first request is displayed for all! Why does this happen? Regards, Edson
RE: Multiple requests to the same servlet is problem
Sounds like your servlet is not thread-safe. Have you got any instance variables declared in your servlet class? -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 29 October 2003 13:07 To: 'Tomcat-User List' Subject: Multiple requests to the same servlet is problem Hello folks, i have one page with iframes, each iframe has a GET request, to a servlet that must bring description for a product code, and therefore each iframe has a different request like: url=/osctrl/exec/ProductDescription?code=478541.1 But when tomcat seems to confuse those three request and all of then display errors or the first request is displayed for all! Why does this happen? Regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple requests to the same servlet is problem
There´s no variable that would control that behavior, if reload each iframe, one after another, it fine ( using mouse for example ). But tell me, a thread-safe servlet could change this situation? -- De: Bodycombe, Andrew[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quarta-feira, 29 de outubro de 2003 9:08 Para: 'Tomcat Users List' Assunto: RE: Multiple requests to the same servlet is problem Sounds like your servlet is not thread-safe. Have you got any instance variables declared in your servlet class? -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 29 October 2003 13:07 To: 'Tomcat-User List' Subject: Multiple requests to the same servlet is problem Hello folks, i have one page with iframes, each iframe has a GET request, to a servlet that must bring description for a product code, and therefore each iframe has a different request like: url=/osctrl/exec/ProductDescription?code=478541.1 But when tomcat seems to confuse those three request and all of then display errors or the first request is displayed for all! Why does this happen? Regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple requests to the same servlet is problem
If your servlet is NOT thread-safe, then concurrent requests could cause unpredictable behaviour. You say that the servlet works if the requests are sent one after the other, but not if the requests are sent at the same time. This indicates a possible threading issue. Many requests to the servlet could use the same servlet instance, so storing request information in instance variables is a bad idea because another request (thread) could change these values before you have finished with them. Regards, Andy -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 29 October 2003 13:49 To: 'Tomcat Users List' Subject: RE: Multiple requests to the same servlet is problem There´s no variable that would control that behavior, if reload each iframe, one after another, it fine ( using mouse for example ). But tell me, a thread-safe servlet could change this situation? -- De: Bodycombe, Andrew[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: quarta-feira, 29 de outubro de 2003 9:08 Para: 'Tomcat Users List' Assunto: RE: Multiple requests to the same servlet is problem Sounds like your servlet is not thread-safe. Have you got any instance variables declared in your servlet class? -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 29 October 2003 13:07 To: 'Tomcat-User List' Subject: Multiple requests to the same servlet is problem Hello folks, i have one page with iframes, each iframe has a GET request, to a servlet that must bring description for a product code, and therefore each iframe has a different request like: url=/osctrl/exec/ProductDescription?code=478541.1 But when tomcat seems to confuse those three request and all of then display errors or the first request is displayed for all! Why does this happen? Regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple requests to the same servlet is problem
Can you post the servlet code? Are you using global variables in you logic? If so, you probably have a threading issue. On Wednesday 29 October 2003 08:07 am, you wrote: Hello folks, i have one page with iframes, each iframe has a GET request, to a servlet that must bring description for a product code, and therefore each iframe has a different request like: url=/osctrl/exec/ProductDescription?code=478541.1 But when tomcat seems to confuse those three request and all of then display errors or the first request is displayed for all! Why does this happen? Regards, Edson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]