tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r828282 - /tuscany/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
Date Thu, 22 Oct 2009 01:52:26 GMT
Author: lresende
Date: Thu Oct 22 01:52:26 2009
New Revision: 828282

URL: http://svn.apache.org/viewvc?rev=828282&view=rev
Log:
Removing references to management class which is restricted in app engine environment

Modified:
    tuscany/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java

Modified: tuscany/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java?rev=828282&r1=828281&r2=828282&view=diff
==============================================================================
--- tuscany/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
(original)
+++ tuscany/java/sca/modules/node-impl/src/main/java/org/apache/tuscany/sca/node/impl/NodeImpl.java
Thu Oct 22 01:52:26 2009
@@ -20,13 +20,13 @@
 package org.apache.tuscany.sca.node.impl;
 
 import java.io.ByteArrayOutputStream;
-import java.lang.management.ManagementFactory;
+//import java.lang.management.ManagementFactory;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 
-import javax.management.MBeanServer;
+//import javax.management.MBeanServer;
 import javax.xml.stream.XMLOutputFactory;
 
 import org.apache.tuscany.sca.assembly.Component;
@@ -152,9 +152,11 @@
             // FIXME: [rfeng] We should turn the management capability into a system utility.
             // In certain environment such as Google App Engine, the JMX API is not allowed
             try {
+                /*
                 MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
                 mbean = new NodeManager(this);
                 mBeanServer.registerMBean(mbean, mbean.getName());
+                */
                 /*
                 LocateRegistry.createRegistry(9999);
                 JMXServiceURL url =
@@ -184,6 +186,7 @@
                 return;
             }
 
+            /*
             if (mbean != null) {
                 try {
                     MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
@@ -194,6 +197,7 @@
                     mbean = null;
                 }
             }
+            */
 
             NodeFinder.removeNode(this);
             if( domainComposite != null ) {



Mime
View raw message