Distributed Transaction configuration in Spring3.x
Because Spring3.x has been used for some time, the original transaction configuration is basically based on the same data source (you can use a connection to specify the operations of multiple databases in data operations, it can also perform rollback and transaction commit, basically implementing distributed transaction processing). Today, we have used atomikos for transaction configuration and conducted a simple test, because atomikos comes with the connection pool when configuring the data source, there is no special test on the Connection Pool performance, and the original c3p0 transaction configuration is removed. This will be tested tomorrow.
The dependent Java open-source package is automatically downloaded using maven:
My configurations
3.9.3
Javax. transaction
Jta
1.1
Com. atomikos
Transactions-jdbc
$ {Atomikos-version}
Com. atomikos
Transactions-jms
$ {Atomikos-version}
Write down the configuration of atomikos + spring jdbc for future project reference.
Init-method = init destroy-method = close id = performancebase>
Mysql/$ {BasesDB. DBName}
$ {Jdbc. basesUser}
$ {Jdbc. basesPassword}
$ {Jdbc. basesJdbcUrl}
20000
Init-method = init destroy-method = close id = performancefile>
Mysql/$ {FilesDB. DBName}
$ {Jdbc. filesUser}
$ {Jdbc. filesPassword}
$ {Jdbc. filesJdbcUrl}
20000
Init-method = init destroy-method = close>
The other is the basic jdbc configuration.
Basic DAO Interface
Basic DAO Interface
?? ??