We are trying to get the use the XA jdbc driver for oracle. After switching to version 3.2 we have had good success. However we noticed that the connections were never being closed until JBoss was shutdown. In the XAManagedConnection it has an instance variable for XAConnection, however close is never being called. So I added the destroy method, calling super.destroy and then calling XAConnection.close. This fixed my problem but I'm not sure if this is the correct/best solution.