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.
I have a servlet (ServletA) invoking another servlet (ServletB) multiple times using RequestDispatcher.include(req,res) method. Actually the architecure is such like from ServletA's service method ServletB is invoked multiple times to achive a functionality. This is working as i am invoking ServletB sequentially one after the other. Now i want to multithread this. Thus i have created a Thread class. But i have some doubts regarding this: 1. From my threaded class how do i invoke ServletB? Will it work if i pass the RequestDispatcher from ServletA to the Threaded class. But in this case how do i send the Request & Response parameters to the include() method?