Hi Isomorphic,
in the StandaloneDataSourceUsage-docs you have
but serverside DSRequest does not have javadocs for setDSTransaction(). Could you add it?
Thank you & Best regards
Blama
in the StandaloneDataSourceUsage-docs you have
Transactions
In standalone mode, transactions cannot be automatically initiated with the HTTP request lifecyle, however you can still manually initiate and commit transations (note, only available with a Power or better license). To do so, create a DSTransaction object and associated each DSRequest with it via dsRequest.setDSTransaction(). At the end of processing, call DSTransaction.complete() to ensure commits and rollbacks are executed.
Usage Example:
DSTransaction dst = new DSTransaction();
DSRequest req1 = new DSRequest("myDataSource", "update");
req1.setDSTransaction(dst);
// Set values and criteria
dst.registerRequest(req1);
In standalone mode, transactions cannot be automatically initiated with the HTTP request lifecyle, however you can still manually initiate and commit transations (note, only available with a Power or better license). To do so, create a DSTransaction object and associated each DSRequest with it via dsRequest.setDSTransaction(). At the end of processing, call DSTransaction.complete() to ensure commits and rollbacks are executed.
Usage Example:
DSTransaction dst = new DSTransaction();
DSRequest req1 = new DSRequest("myDataSource", "update");
req1.setDSTransaction(dst);
// Set values and criteria
dst.registerRequest(req1);
Thank you & Best regards
Blama
Comment