-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
1
-
2
-
ActiveObjects provides support for transactions using SAL's SalTransactionManager.inTransaction(). This does not work in JIRA, since down the road this call lands in DefaultHostContextAccessor.doInTransaction(), which is a no-op.
This means that all transaction support AO provides does not get passed down to the JDBC level. This is critical since it gives plugin developers the false impression that they've got transactionality in their code, while they effectively have not.
Workaround
As mentioned by andrei1176810792 in this comment, add-on vendors can manually create transactions as a workaround:
import com.atlassian.jira.transaction.Transaction; import com.atlassian.jira.transaction.Txn; Transaction txn = Txn.begin(); try { ... txn.commit(); ... } finally { txn.finallyRollbackIfNotCommitted(); }
- relates to
-
JRACLOUD-25808 Enable ActiveObjects transaction support in JIRA
- Closed
-
JRASERVER-31733 Run all issue event listeners inside the database transaction that writes the issue data
- Closed
-
JRASERVER-31756 Ability for Active Objects to use the current ofbiz transaction
- Closed
-
AO-271 Loading...
- duplicates
-
JDEV-29986 Loading...
- was cloned as
-
JDEV-28776 Loading...