add xa support

This commit is contained in:
wenshao
2012-08-21 06:57:54 +08:00
parent 37fc58fefd
commit f9acc0e6b2
10 changed files with 68 additions and 1048 deletions
@@ -0,0 +1,13 @@
package com.alibaba.druid.util;
import java.sql.Connection;
import java.sql.SQLException;
import com.mysql.jdbc.jdbc2.optional.MysqlXAConnection;
public class MySqlUtils {
public static MysqlXAConnection createXAConnection(Connection physicalConn) throws SQLException {
return new MysqlXAConnection((com.mysql.jdbc.ConnectionImpl) physicalConn, false);
}
}