Vinay Vishal | 5717147 | 2018-09-18 20:22:00 +0530 | [diff] [blame] | 1 | This devtest tries to test whether the appserver |
| 2 | maintains the connection's autocommit mode. |
| 3 | The scenario is thus: |
| 4 | |
| 5 | 1. Have a pool with size 2 |
| 6 | 2. Get a connection inside a transaction (This according |
| 7 | to the ConnectorXAResource architecture actually gets |
| 8 | 2 connections). Check that getAutoCommit is false. |
| 9 | Close connection. |
| 10 | 3. Get 2 connections. Check that both have autocommit set |
| 11 | to true, which is the JDBC default. These 2 connections |
| 12 | had auto-commit set to false in step 2, but now have true. |
| 13 | So in conclusion, the appserver preserves the connection's |
| 14 | autocommit mode. |
| 15 | |
| 16 | |