jbossas/quickstart — pull request #15 by csadilek (2011-11-04 15:34:01+00:00)
Title: Quickstarts: servlet-filterlistener and servlet-async

This pull request contains Jonathan Fuerth's and my quickstarts (servlet-filterlistener and servlet-async).

servlet-async shows how to detach the execution of a resource intensive task from the request processing thread, so the thread is free to serve other client requests. To properly demonstrate this feature, the servlet has to hand off a task to a thread (of another smaller pool) which will generate the response asynchronously. To keep things simple (less code) for the quickstart, we decided against managing our own thread pool/executors and instead also show the use of @Asynchronous EJB invocations, which provide exactly that.

servlet-filterlistener shows the use of a servlet filter to remove vowels from request parameter values and a servlet listener that logs all parameters of HTTP requests.