예제
protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) {
Runnable runner = RunnablePool.instance().getRunnable(arg0);
Thread t = new Thread(runner);
t.start();
t.destroy();
}
솔루션
다중 스레드를 사용하는 대신 Servlet 내의 작업이 연속으로 수행되어야 합니다. J2EE 응용프로그램으로 스레드를 작성해서는 안 되지만 스레드를 사용해야 할 경우 풀링해야 합니다.