title: Tomcat - one thread per request - or other alternatives?
body: <p>My understanding is that in Tomcat, each request will take up one Java/(and thus OS) thread. </p>
  
  <p>Imagine I have an app with lots of long-running requests (eg a poker game with multiple players,) that involves in-game chat, and AJAX long-polling etc. </p>
  
  <p>Is there a way to change the tomcat configuration/architecture for my webapp so that I'm not using a thread for each request but 'intercept' the request and response so they can be processed as part of a queue?</p>