Package ch.admin.bit.jeap.db.tx
package ch.admin.bit.jeap.db.tx
-
ClassDescriptionThis transaction manager keeps track of the readOnly value of top level transactions and sets this value to a ThreadLocal, which can be used somewhere else, for instance by
ReadReplicaAwareTransactionRoutingDataSourceto route to the corresponding datasource.This DataSource implementation resolves a target DataSource depending on the read-only value of the top-level transaction.Meta-annotation for@Transactionalthat indicates that a read-only transaction should be started on a read-only replica instance of a database.