COMPUTER/웹개발
jdbc pooling, 서블릿 Request 포워딩
cherry1031
2014. 10. 21. 14:56
1. JDBC의 Pooling
JDBC 연동 시 Connection을 맺는 시간이 오래 걸린다. 성능을 개선하기 위하여 connection pool에 미리 여러개를 연결 해 놓고 필요한 클래스에서 빌려서 사용하고 반납하도록 한다. 이것이 JDBC Pooling
2. Request Forwarding
request.setAttribute("name","sarah");
request.setAttribute("age","13");
RequestDispatcher dispatcher = request.getRequestDispatcher("보낼서블릿")
dispatcher.forward(request, response)
받는 서블릿
(String) request.getAttribute("name");
식으로 받음..