Using transactions |
TransactionsSIRA_PRISE includes support for transactions, including the concept of nested transactions. DML operations with SIRA_PRISE can only be done inside the context of a transaction, so usage of the transactions feature is actually required to get anything done by SIRA_PRISE. SIRA_PRISE currently has no support for two-phase commit, so using transactions amounts just to starting them, committing them or rolling them back, and ending them. Users writing their own SIRA_PRISE client can find the needed documentation on how to achieve this in the documentation of the SIRA_PRISE message types. Users accessing SIRA_PRISE through the java client can find the needed documentation in the provided client JavaDoc. Ending transactions properly is important because the server limits the amount of transactions that can be running simultaneously. If a client does not end a transaction properly, that transaction remains "active, but not doing anything" on the server until it times out. This amounts to reducing the total number of effectively available transactions by one. Note that in the freely available version, the amount of available transactions is limited to one. Nested transactions and savepointsSIRA_PRISE includes support for nested transactions, which feature allows the users to obtain the transaction behaviour that is possibly also known as "savepoints".The following rules apply to using nested transactions :
|