-
커넥션 풀
: 데이터베이스와 연결된 커넥션을 미리 만들어서 풀 속에 저장해 두고 있다가 필요할 때 커넥션 풀에서 가져다 쓴다.
( 한 웹 서버를 개발할 때 각 페이지마다 메모리를 소모할 필요 없이 커넥션 풀을 이용해 메모리 소모를 줄인다.)
- 예를 들어 위와 같은 class를 모든 페이지마다 생성할 필요가 없다.
- DBCP를 이용해서 커넥션 풀 사용하기
1. DBCP 관련 jar 파일과 JDBC 드라이버 jar 파일 설치하기
2. 커넥션 풀 초기화
3. 커넥션 풀로부터 커넥션 사용하기
'JSP' 카테고리의 다른 글
게시판 작동 원리 (0) 2023.03.23 mysql에서 데이터 가져오기 (0) 2023.03.23 프론트엔드와 백엔드 / JDBC 세팅 (0) 2023.03.23 c: 코어태그 와 fmt: 국제화 태그 (0) 2023.03.23 세션 (session) (0) 2023.03.22