使用此代码我无法获得连接是xa还是非xa
DatabaseMetaData dbmd = con.getMetaData();
dbmd.getDriverName();
System.out.println("DriverName - "+dbmd.getDriverName()+"DriverName class - "+dbmd.getDriverName().getClass() +"DriverName class name - "+ dbmd.getDriverName().getClass().getName());
System.out.println("DriverVersion - "+dbmd.getDriverVersion());
System.out.println("MultipleTransactions - "+dbmd.supportsMultipleTransactions());
System.out.println("Transactions - "+dbmd.supportsTransactions());
System.out.println("getClassgetName - "+dbmd.getClass().getName());
System.out.println("CLASSNAME"+(dbmd.getDriverName()).getClass().getName());
System.out.println("url - "+dbmd.getURL()+" getUserName "+dbmd.getUserName());
System.out.println("DefaultTransactionIsolation - "+dbmd.getDefaultTransactionIsolation()+" Connection "+dbmd.getConnection()+" Connection class "+dbmd.getConnection().getClass()+" Connection class name "+dbmd.getConnection().getClass().getName());