mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add xa support
This commit is contained in:
@@ -65,6 +65,10 @@ public class DruidXADataSource extends DruidDataSource implements XADataSource {
|
||||
if (JdbcUtils.H2.equals(dbType)) {
|
||||
return H2Utils.createXAConnection(h2Factory, physicalConn);
|
||||
}
|
||||
|
||||
if (JdbcUtils.JTDS.equals(dbType)) {
|
||||
return new JtdsXAConnection(physicalConn);
|
||||
}
|
||||
|
||||
throw new SQLException("xa not support dbType : " + this.dbType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user