This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
If servlet's doXXX() method does "some work" with the DB which takes a bit of time and many users want to do this "some work". And I was thinking of using a multithread doing this.. (like connection pooling ) Say, have a separate class(extends thread) that does "some work" with the DB.... but then many clients call servlet's doXXX() method... how is this going to work? I just could not combine those two together to think of a solution. Can anyone suggest a right way of doing this ? Thanks in advance.