When a connection is requested from a datasource and later that connection is closed an exception is thrown
Caused by: org.firebirdsql.jdbc.FBSQLException: Connection enlisted in distributed transaction
It looks like I broke this when fixing JDBC344. The current expectation of the close() method is "// autocommit is always true for managed tx.", but that is no longer true.
I also need to review the tests as it looks like this only happens when using distributed transactions with the JCA resource adapter instead of a JDBC XADataSource, and that combination doesn't seem to be covered in the tests.