Get rid of the concierge holding standalone connection

Reviewed-by: perf run
This commit is contained in:
Prasanna Santhanam 2012-08-27 14:38:21 -04:00
parent 0b01c00185
commit a594889053
1 changed files with 4 additions and 2 deletions

View File

@ -106,13 +106,15 @@ public class SimulatorManagerImpl implements SimulatorManager {
private ConnectionConcierge _concierge;
@Override
public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {
/*
try {
Connection conn = Transaction.getStandaloneSimulatorConnection();
Connection conn = Transaction.getStandaloneConnectionWithException();
conn.setAutoCommit(true);
_concierge = new ConnectionConcierge("SimulatorConnection", conn, true);
} catch (SQLException e) {
throw new CloudRuntimeException("Unable to get a db connection to simulator", e);
}
*/
return true;
}
@ -150,7 +152,7 @@ public class SimulatorManagerImpl implements SimulatorManager {
@Override
public Answer simulate(Command cmd, String hostGuid) {
Transaction txn = Transaction.open(Transaction.SIMULATOR_DB);
txn.transitToUserManagedConnection(_concierge.conn());
// txn.transitToUserManagedConnection(_concierge.conn());
try {
MockHost host = _mockHost.findByGuid(hostGuid);