Feb 16th, 2006, 03:24 AM
How to test transaction timeout
I tried to test a timeout in a transactional method by adding this piece of code :
The timeout was set to 1 second. The method was successfully completed, and there wasn't any rollback.
Any idea of what happens, or another way to test the timeout ?
Feb 16th, 2006, 04:19 AM
I tried to replace the Thread.sleep() by an endless loop after doing some modifications in the database. The modifications are not commited (good point) but the execution of the method is not stopped ...
Any explanations ?