We introduce all kinds of eGovFrame related documents, training and technical support information in this corner. Also, we provide the contact information and the location of the eGovFrame center.
Posted Question Details View This table provides TITLE, DIVISION, VIEWS, WRITER, DATE ASKED, NATIONALITY, EMAIL, EMAIL REPLY, STATUS, Question, Answer.
질문제목
How to use Multi DBHow to use Multi DB
구분
Runtime Environment
조회수
2899
작성자
Z****n
작성일자
2017-03-23
Nationality
FR
이메일답변여부
N
진행상태
Complete
Question
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?
Answer
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)