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 agree with Bear - the question is seriously flawed.
1. ANY number of Threads can be executing the same block of code "at the same time" without a problem. It is the variables that you have to think about, not the code. This is true in any language, not just Java.
2. ONLY the request Thread which calls service can modify the request and response variables - no other request Thread can see them.
3. ONLY the request Thread can modify variables created and reference locally inside the service method. NOTE the important word "locally" - if the only reference to an object exists in the stack of the calling Thread, it is completely isolated.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com