add xa support

This commit is contained in:
wenshao
2012-08-21 09:02:45 +08:00
parent 0decc91a43
commit 0bde344170
7 changed files with 105 additions and 26 deletions
@@ -3,11 +3,13 @@ package com.alibaba.druid.util;
import java.sql.Connection;
import java.sql.SQLException;
import javax.sql.XAConnection;
import com.mysql.jdbc.jdbc2.optional.MysqlXAConnection;
public class MySqlUtils {
public static MysqlXAConnection createXAConnection(Connection physicalConn) throws SQLException {
public static XAConnection createXAConnection(Connection physicalConn) throws SQLException {
return new MysqlXAConnection((com.mysql.jdbc.ConnectionImpl) physicalConn, false);
}
}