Yes I understand what you are saying but there is only ever one call to the database. The class making the call to the selectOrdersBeingPrepared method is on a 15 second timer so I just put a System.out.println call on the selectOrdersBeingPrepared method to observe what was happening. It seems that every now and then it decides to call the method twice, which is obviously the reason it throws this error. However, I have no idea why it would call the method twice!!
Any ideas? On Mar 8, 6:11 pm, Lothar Kimmeringer <[email protected]> wrote: > [email protected] schrieb: > > > dc is creates a Database Connector object. I'm not sure why there > > would be two parallel calls as the connection to the database is > > closed after every call... > > Is it a global member of the servlet? If two requests are received > at the same time, they will use the same connection and the first > request that finishes, closes the connection, so the second request > will become very unhappy. > > Regards, Lothar --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
