Hi There!
I'm doing some silly exercises in order to get ready for OCPWCD, anyways according to the theory, the same servlet, should run on different threads on per request, so i did a simple example:
and then i just call the servlet multiple times, and bam! every request runs one after the other on the same thread.
if you want to see it on action you can download the entire repo
git@github.com:bubuntux/OCPWCD.git (is pretty small), then mvn tomcat6:run, then open
http://localhost:8080/chapter4/index.html and click on SameServletMultipleThreads link.
Perhaps i'm missing a tomcat config? not really sure why this servlet is not running on different threads at the same time.
any idea??
thanks!