Programmatically testing concurrency in J2EE web applications
Brian Mulanda, Bruce Mechtly · Journal of computing sciences in colleges · 2004
In this paper we present a Java GUI application and a corresponding web application that demonstrate data corruption in non thread-safe J2EE web applications. The application allows the user to create a number of threads that will cause nearly simultaneous connections to a web server, simulating use of the web server concurrently by multiple clients. Our web application contains deliberate design flaws so that it will show data corruption under even moderate concurrent use. We discuss the conditions under which corruption occurs and show how to make thread-safe web applications using servlets and JavaServerPages.