Skip to content

Commit a4c7fc3

Browse files
committed
Add deadlock warning for CommitInSeparateDatabaseTransaction
1 parent 346846c commit a4c7fc3

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

0 Bytes
Binary file not shown.

src/CommunityCommons/javasource/communitycommons/actions/commitInSeparateDatabaseTransaction.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
/**
1919
* This function commits an object in a seperate context and transaction, making sure it gets persisted in the database (regarding which exception happens after invocation).
20+
*
21+
* Please note that this action is prone to deadlock. For example if you commit an object in one transaction and then use this action to commit the same object in a separate transaction. We do not recommend the use of this action.
2022
*/
2123
public class commitInSeparateDatabaseTransaction extends CustomJavaAction<java.lang.Boolean>
2224
{

0 commit comments

Comments
 (0)