db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r636803 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/management/MBeanTest.java
Date Thu, 13 Mar 2008 16:46:15 GMT
Author: djd
Date: Thu Mar 13 09:46:10 2008
New Revision: 636803

URL: http://svn.apache.org/viewvc?rev=636803&view=rev
Log:
DERBY-3506 Ensure that MBeanTest.enableManagement() uses a privileged block for its invoke
to turn on jmx management.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/management/MBeanTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/management/MBeanTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/management/MBeanTest.java?rev=636803&r1=636802&r2=636803&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/management/MBeanTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/management/MBeanTest.java
Thu Mar 13 09:46:10 2008
@@ -231,8 +231,6 @@
         
         ObjectName mgmtObjName = getApplicationManagementMBean();
         
-        MBeanServerConnection serverConn = getMBeanServerConnection();
-
         // check the status of the management service
         Boolean active = (Boolean) 
                 getAttribute(mgmtObjName, "ManagementActive");
@@ -240,10 +238,8 @@
         if (!active.booleanValue()) {
             // JMX management is not active, so activate it by invoking the
             // startManagement operation.
-            serverConn.invoke(
-                    mgmtObjName, 
-                    "startManagement", 
-                    new Object[0], new String[0]); // no arguments
+            invokeOperation(mgmtObjName, "startManagement");
+
             active = (Boolean) 
                     getAttribute(mgmtObjName, "ManagementActive");
         }



Mime
View raw message