eGovFrame 표준프레임워크 포털

메뉴 건너띄기
상단메뉴 바로가기
본문 바로가기

이 누리집은 대한민국 공식 전자정부 누리집입니다.

본문 영역

적용 지원, FAQ, Q&A 게시판을 통해 기술 문제 해결을 지원합니다.

자주 묻는 질문

How to use Multi DB
  • 작성자

    관리자

  • 작성일자

    2012-04-18

  • 조회수

    4,713

질문

I’d like to use several databases. What configuration do I have to make?

In addition, could you let me know the method for ensuring transaction?

답변

Hello There are two ways. The first is simply choosing another DB without transaction, the second is using global transaction such as 2PC(two-phase commit). The first case which is simply choosing another DB will be handled as follows: 1. Define additional DataSource (context-datasource.xml) 2. Define additional sqlMapClient (context-sqlMap.xml) 3. Add AbstractDAO 4. Implement development DAO (Inherit added AbstractDAO) The second case which is global transaction will be implemented with JTA of WAS. The attached file will explain the configuration and how to apply. (including JEUS case study)

첨부파일

이 페이지의 구성

자주 묻는 질문