OctaviusSessionSynchronization
internal class OctaviusSessionSynchronization(holder: OctaviusSessionHolder, key: OctaviusSessionKey, springTransaction: Boolean) : ResourceHolderSynchronization<OctaviusSessionHolder, OctaviusSessionKey>
Ends the transaction-scoped session at the right point in Spring's completion sequence.
ResourceHolderSynchronization unbinds it over a suspension, so a REQUIRES_NEW transaction inside another does not find the outer one's session.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected open fun cleanupResource(resourceHolder: OctaviusSessionHolder?, resourceKey: OctaviusSessionKey?, committed: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected open override fun releaseResource(resourceHolder: OctaviusSessionHolder, resourceKey: OctaviusSessionKey)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Moves the release of a session in a transaction Spring began from beforeCompletion to afterCompletion. Before completion a failed transaction is still failed, every statement gets 25P02, and a session that cannot reset its connection gives it up - one connection for every transaction that failed on the server. After completion the connection answers again, and Spring has not released it yet.
Link copied to clipboard