File tree Expand file tree Collapse file tree
agent-simulator/src/com/cloud/agent/manager Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -109,13 +109,15 @@ public class SimulatorManagerImpl implements SimulatorManager {
109109 private ConnectionConcierge _concierge ;
110110 @ Override
111111 public boolean configure (String name , Map <String , Object > params ) throws ConfigurationException {
112+ /*
112113 try {
113114 Connection conn = Transaction.getStandaloneConnectionWithException();
114115 conn.setAutoCommit(true);
115116 _concierge = new ConnectionConcierge("SimulatorConnection", conn, true);
116117 } catch (SQLException e) {
117118 throw new CloudRuntimeException("Unable to get a db connection", e);
118119 }
120+ */
119121 return true ;
120122 }
121123
@@ -152,8 +154,8 @@ public MockAgentManager getAgentMgr() {
152154 @ DB
153155 @ Override
154156 public Answer simulate (Command cmd , String hostGuid ) {
155- Transaction txn = Transaction .currentTxn ( );
156- txn .transitToUserManagedConnection (_concierge .conn ());
157+ Transaction txn = Transaction .open ( Transaction . SIMULATOR_DB );
158+ // txn.transitToUserManagedConnection(_concierge.conn());
157159
158160 try {
159161 MockHost host = _mockHost .findByGuid (hostGuid );
You can’t perform that action at this time.
0 commit comments