geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jb...@apache.org
Subject svn commit: r757917 - /geronimo/server/branches/2.1.4/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MRCConnector.java
Date Tue, 24 Mar 2009 17:29:10 GMT
Author: jbohn
Date: Tue Mar 24 17:29:05 2009
New Revision: 757917

URL: http://svn.apache.org/viewvc?rev=757917&view=rev
Log:
GERONIMO-4588 Adding multiple server with the same host in monitoring portlet results in a
sql error - patch from Jack Cai

Modified:
    geronimo/server/branches/2.1.4/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MRCConnector.java

Modified: geronimo/server/branches/2.1.4/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MRCConnector.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1.4/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MRCConnector.java?rev=757917&r1=757916&r2=757917&view=diff
==============================================================================
--- geronimo/server/branches/2.1.4/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MRCConnector.java
(original)
+++ geronimo/server/branches/2.1.4/plugins/monitoring/mconsole-war/src/main/java/org/apache/geronimo/monitoring/console/MRCConnector.java
Tue Mar 24 17:29:05 2009
@@ -141,7 +141,7 @@
         try {
             Statement stmt = conn.createStatement();
             stmt.executeUpdate("UPDATE SERVERS SET LAST_SEEN = '" + currentTime
-                    + "' WHERE IP='" + ip + "'");
+                    + "' WHERE IP='" + ip + "' AND PORT=" + port);
         } catch (Exception e) {
             throw e;
         } finally {



Mime
View raw message