Is request and resonse objects are thread safe?
Eddy Lee Sin Ti
posted 10 years ago
Request and Response objects are local to their own methods and not shared between servlet threads, thus they are by nature, thread safe. The only requirement from the servlet specification is that you should not keep references to them after the method ends, for example put them in class level members, put in session, etc; because the behavior of Request and Response after the method returned are undefined.