User: starksm
Date: 01/05/24 10:53:35
Modified: src/main/org/jboss/util Tag: Branch_2_2 Info.java
Log:
Dump out the entire System properties as DEBUG priority msgs
Revision Changes Path
No revision
No revision
1.4.2.1 +13 -4 jboss/src/main/org/jboss/util/Info.java
Index: Info.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/util/Info.java,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -r1.4 -r1.4.2.1
--- Info.java 2000/12/07 18:16:13 1.4
+++ Info.java 2001/05/24 17:53:35 1.4.2.1
@@ -6,8 +6,7 @@
*/
package org.jboss.util;
-import java.io.*;
-import java.net.*;
+import java.util.Enumeration;
import javax.management.*;
import javax.management.loading.MLet;
@@ -19,7 +18,8 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.4 $
+ * @author [EMAIL PROTECTED]
+ * @version $Revision: 1.4.2.1 $
*/
public class Info
implements InfoMBean, MBeanRegistration
@@ -39,11 +39,20 @@
public ObjectName preRegister(MBeanServer server, ObjectName name)
throws java.lang.Exception
{
+ // Dump out basic info as INFO priority msgs
log.log("Java version:
"+System.getProperty("java.version")+","+System.getProperty("java.vendor"));
log.log("Java VM: "+System.getProperty("java.vm.name")+"
"+System.getProperty("java.vm.version")+","+System.getProperty("java.vm.vendor"));
log.log("System: "+System.getProperty("os.name")+"
"+System.getProperty("os.version")+","+System.getProperty("os.arch"));
+ // Now dump out the entire System properties as DEBUG priority msgs
+ log.debug("+++ Full System Properties Dump");
+ Enumeration names = System.getProperties().propertyNames();
+ while( names.hasMoreElements() )
+ {
+ String pname = (String) names.nextElement();
+ log.debug(pname+": "+System.getProperty(pname));
+ }
- // MF TODO: say everything that needs to be said here: copyright, included
libs and TM, contributor and (C) jboss org 2000
+ // MF TODO: say everything that needs to be said here: copyright, included
libs and TM, contributor and (C) jboss org 2000
return new ObjectName(OBJECT_NAME);
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development