Intialize a user transaction
Optional
gtrid: stringglobal transaction id
Optional
timeout: numbertransaction timeout value in milliseconds
Executes a transaction
Express request object
The function to execute as part of the transaction
Rest
...args: any[]The arguments to pass to the func mentioned
Modifies the timeout value in seconds that is associated with the transaction started with the begin method. If the transaction is not began, this methods throws an error If an application has not called this method, the transaction service uses a default value for the transaction timeout
timeout in milliseconds
Copyright © 2022, 2025, Oracle and/or its affiliates.
The TrmUserTransaction class has methods that allows an application to create transaction boundaries, such as for begin, commit, or roll back. A Node.js application must create an instance of this class and use the instance methods for transaction demarcation.