protectedvoid doGet(HttpServletRequest arg0, HttpServletResponse arg1) { Runnable runner = RunnablePool.instance().getRunnable(arg0); Thread t = new Thread(runner);
t.start();
t.destroy();
}
Solution
Instead of using multiple threads, work within a servlet should be done serially. Threads should not be created by J2EE applications, but if threads must be used, they should be pooled.