on 2016 Jan 28 7:11 AM
Let ASA-12 database with web services (-xs ...).
Is it possible within a single session, start a transaction in one http(s)-request and finish/COMMIT in another http(s)-request? For example:
request1 to serviceA: ...update ttt set fff=null ...
...
requestN to serviceB: ...COMMIT ...
Or "if the web service finishes normally, by definition the COMMIT will have been executed" © Breck Carter, i.e.:
request1 to serviceA: ...update ttt set fff=null ... ==> (auto)COMMIT
Breck is correct: at the end of each web service request the connection will either COMMIT or ROLLBACK depending on the state of the connection - the connection will ROLLBACK if an error state exists (e.g. an exception was raised) otherwise will COMMIT.
So there is no method to start a transaction in one http request and COMMIT it in another http request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.