blob: 7856ff2c8ba384316d1b510d25b75c20eec4bfaa [file] [log] [blame]
Vinay Vishal57171472018-09-18 20:22:00 +05301This devtest tries to test whether the appserver
2maintains the connection's autocommit mode.
3The scenario is thus:
4
51. Have a pool with size 2
62. 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.
103. 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