Search
Duplicate
โ˜•

Logical vs Physical Transaction

๋‘ ๊ฐœ์˜ ํŠธ๋žœ์žญ์…”๋„ ์–ด๋…ธํ…Œ์ด์…˜์ด ์žˆ๋Š” ๋กœ์ง์ด ์žˆ์„ ๋•Œ!(๊ฐ๊ธฐ ๋‹ค๋ฅธ ์„œ๋น„์Šค)
โ€ข According to theย ACIDย properties, it should be one transaction.
โ€ข Spring calls this aย physical transaction.ย It is just actual JDBC connections.
โ€ข But internally there are twoย logical transactions.ย The first one in EmployeeService and another one in AccountService
โ€ข If we change the propagation type in createAccountDocument( ) we can change it to have two physical connections.