fix for the problem of locking connection being gone

This commit is contained in:
Alex Huang 2011-08-22 10:04:22 -07:00
parent 8755044ea9
commit 009e60266d

View File

@ -68,7 +68,7 @@ public class Merovingian2 extends StandardMBean implements MerovingianMBean {
conn = Transaction.getStandaloneConnectionWithException();
conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
conn.setAutoCommit(true);
_concierge = new ConnectionConcierge("LockMaster", conn, false);
_concierge = new ConnectionConcierge("LockMaster", conn, true);
} catch (SQLException e) {
s_logger.error("Unable to get a new db connection", e);
throw new CloudRuntimeException("Unable to initialize a connection to the database for locking purposes: ", e);