What is the meaning of a transaction?

I read about Java Transaction , and I was confused about what it is? and what is useful in?

+6
source share
2 answers

You can search Google and find the following pages: http://www.java-tips.org/java-ee-tips/enterprise-java-beans/introduction-to-the-java-transactio.html

but bottom line: a transaction is a set of operations that must be successful or all fail and be canceled (rollback).

An obvious example is banking: if you transfer money from savings to verification, then both updates are better or not, otherwise there will be an error.

+4
source
0
source

Source: https://habr.com/ru/post/887031/


All Articles