I am trying to understand how to use setTransactionTimeout in conjunction with WmArt’s explicit transaction management.
I created a test rig as follows -
- pub.art.transaction:setTransactionTimeout (timeoutSeconds = 5)
- Sequence (try/catch)
– Sequence (try)
— Call Oracle stored procedure which sleeps for 10 seconds
– Sequence (catch)
When I run this I was expecting the Oracle call to be interrupted for taking longer than 5 seconds but what I see is the call completing normally after 10 seconds.
Any suggestions? Have I misunderstood the function of the transaction timeout?