geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ammul...@apache.org
Subject svn commit: r230605 - in /geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console: databasemanager/AbstractConnectionFactoryManagerPortlet.java jmsmanager/JMSConnectionFactoryManagerPortlet.java
Date Sat, 06 Aug 2005 22:16:06 GMT
Author: ammulder
Date: Sat Aug  6 15:16:02 2005
New Revision: 230605

URL: http://svn.apache.org/viewcvs?rev=230605&view=rev
Log:
Fix state queries (GERONIMO-856, thanks to Joe Bohn)

Modified:
    geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/AbstractConnectionFactoryManagerPortlet.java
    geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/jmsmanager/JMSConnectionFactoryManagerPortlet.java

Modified: geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/AbstractConnectionFactoryManagerPortlet.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/AbstractConnectionFactoryManagerPortlet.java?rev=230605&r1=230604&r2=230605&view=diff
==============================================================================
--- geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/AbstractConnectionFactoryManagerPortlet.java
(original)
+++ geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/databasemanager/AbstractConnectionFactoryManagerPortlet.java
Sat Aug  6 15:16:02 2005
@@ -212,9 +212,7 @@
             try {
                 info.setJndiName((String) kernel.getAttribute(gbeanName,
                         "globalJNDIName"));
-                info
-                        .setState((Integer) kernel.getAttribute(gbeanName,
-                                "state"));
+                info.setState(new Integer(kernel.getGBeanState(gbeanName)));
                 //check if user asked this connection to be tested
                 if ((gbeanName.toString().equals(name)) && (check)) {
                     info.setWorking(true);

Modified: geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/jmsmanager/JMSConnectionFactoryManagerPortlet.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/jmsmanager/JMSConnectionFactoryManagerPortlet.java?rev=230605&r1=230604&r2=230605&view=diff
==============================================================================
--- geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/jmsmanager/JMSConnectionFactoryManagerPortlet.java
(original)
+++ geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/jmsmanager/JMSConnectionFactoryManagerPortlet.java
Sat Aug  6 15:16:02 2005
@@ -202,9 +202,7 @@
             try {
                 info.setJndiName((String) kernel.getAttribute(gbeanName,
                         "globalJNDIName"));
-                info
-                        .setState((Integer) kernel.getAttribute(gbeanName,
-                                "state"));
+                info.setState(new Integer(kernel.getGBeanState(gbeanName)));
                 //check if user asked this connection to be tested
                 if ((gbeanName.toString().equals(name)) && (check)) {
                     info.setWorking(true);



Mime
View raw message