Author: shawkins
Date: 2009-04-06 10:29:25 -0400 (Mon, 06 Apr 2009)
New Revision: 718
Modified:
trunk/console/src/main/java/com/metamatrix/console/connections/ConnectionInfo.java
Log:
TEIID-311 serveradmin needs to be thrown away after closing
Modified:
trunk/console/src/main/java/com/metamatrix/console/connections/ConnectionInfo.java
===================================================================
---
trunk/console/src/main/java/com/metamatrix/console/connections/ConnectionInfo.java 2009-04-06
14:21:23 UTC (rev 717)
+++
trunk/console/src/main/java/com/metamatrix/console/connections/ConnectionInfo.java 2009-04-06
14:29:25 UTC (rev 718)
@@ -279,14 +279,13 @@
}
if (this.serverAdmin != null) {
this.serverAdmin.close();
+ this.serverAdmin = null;
}
}
/**
- * Get a ServerAdmin object. Make sure to call ServerAdmin.close() when you're done
with it.
- * TODO: cache this? Need to make sure it gets closed when the console exits.
- * @throws CommunicationException
+ * Get a ServerAdmin object.
*/
public synchronized ServerAdmin getServerAdmin() throws AdminException,
CommunicationException {
if (this.serverAdmin == null) {