https://supawer0728.github.io/2018/03/22/spring-multi-transaction/

 

(Spring)다중 DataSource 처리

서론Spring Application을 만들면서 여러 DataSource와 transaction이 존재하고 하나의 transaction 내에 commit과 rollback이 잘 동작하도록 하려면 어떻게 설정해야 할까? 실제로 구현을 해본 적은 없지만 세 가지

supawer0728.github.io

 

 

https://goodwoong.tistory.com/126

 

[Spring boot] 분산 트랜젝션

분산 트랜젝션이란 ? 2개 그 이상의 네트워크 상의 시스템 간의 트랜잭션. 2개의 Phase Commit으로 분산 리소스간의 All or Nothing 보장 Spring Boot 내에서 XA protocol을 사용해서 two phase commit을 진행한다. XA

goodwoong.tistory.com

 

 

https://kindloveit.tistory.com/120

 

[Spring boot] atomikos 라이브러리 활용 XA 멀티 DBMS Transacaction 구현

백엔드 개발을 할때 하나의 DB 가 아닌 여러 DB를 활용해서 개발을 해야 할 경우가 있을 수 있다. 여러 DB에 데이터를 write 할 경우에 데이터 정합성을 위한 transaction 관리가 쉽지 않을텐데 Spring boot

kindloveit.tistory.com

 

참조.

- atomikos : https://www.atomikos.com/Documentation

 

 

 

728x90

'Tools > Spring' 카테고리의 다른 글

Spring 관련 한글 문서  (0) 2023.10.06
[SpringBoot 2.7.*] H2 Jdbc 설정, schema(DDL) 및 data(DML)  (0) 2023.09.16
spring application.properties 정보  (0) 2023.08.18
J2DBC 참조  (0) 2023.05.09
web Flux 참조  (0) 2023.05.09

Spring 관련 다양한 문서를 한글화하고 있음.

 

https://godekdls.github.io/

 

Hello World!

토리맘의 한글라이즈 프로젝트.

godekdls.github.io

 

728x90

'Tools > Spring' 카테고리의 다른 글

[펌] [Spring boot] 분산 트랜젝션  (1) 2025.02.20
[SpringBoot 2.7.*] H2 Jdbc 설정, schema(DDL) 및 data(DML)  (0) 2023.09.16
spring application.properties 정보  (0) 2023.08.18
J2DBC 참조  (0) 2023.05.09
web Flux 참조  (0) 2023.05.09

H2 버전 조정

	<properties>
		<java.version>11</java.version>
		<!-- 2.x 최신버전에서 validation이 강화되어, 버전을 낮춰서 테스트 진행하는 것으로 보임. JJH -->
		<h2.version>1.4.196</h2.version>
	</properties>

1. 1H2 File DB 및 Memory DB 설정

2. 초기 schema(DDL) 및 data(DML) 설정

spring:
  datasource:
    # 1. H2 file DB. 어플리케이션 경로에서 생성. DB경로. AUTO_SERVER는 다중접속여부
    url:  jdbc:h2:file:./db/h2/data;AUTO_SERVER=true
    # 2. H2 file DB. ~ 는 사용자 계정아래에 DB 생성.
#    url:  jdbc:h2:~/db/h2/data;AUTO_SERVER=true
    # 3. H2 Memory DB
#    url:  jdbc:h2:mem:testdb
    driverClassName: org.h2.Driver
    username: sa
    password:
  h2:
    console:
      enabled: true
      path: /h2-console
  sql:
    init:
      mode: always
      schema-locations: classpath:/h2/schema.sql
      data-locations: classpath:/h2/data.sql
#  jpa:
#    defer-datasource-initialization: true

 

 

728x90

'Tools > Spring' 카테고리의 다른 글

[펌] [Spring boot] 분산 트랜젝션  (1) 2025.02.20
Spring 관련 한글 문서  (0) 2023.10.06
spring application.properties 정보  (0) 2023.08.18
J2DBC 참조  (0) 2023.05.09
web Flux 참조  (0) 2023.05.09

 

https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html

 

Common Application Properties

 

docs.spring.io

 

end.

 

728x90

'Tools > Spring' 카테고리의 다른 글

[펌] [Spring boot] 분산 트랜젝션  (1) 2025.02.20
Spring 관련 한글 문서  (0) 2023.10.06
[SpringBoot 2.7.*] H2 Jdbc 설정, schema(DDL) 및 data(DML)  (0) 2023.09.16
J2DBC 참조  (0) 2023.05.09
web Flux 참조  (0) 2023.05.09

+ Recent posts