User: starksm 
  Date: 01/05/09 07:47:54

  Modified:    src/main/org/jboss/util Info.java
  Log:
  Add full dump of the system properties as debug level msgs so that
  the complete properties info can be captured in the server.log
  
  Revision  Changes    Path
  1.5       +12 -1     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.5
  diff -u -r1.4 -r1.5
  --- Info.java 2000/12/07 18:16:13     1.4
  +++ Info.java 2001/05/09 14:47:54     1.5
  @@ -8,6 +8,7 @@
   
   import java.io.*;
   import java.net.*;
  +import java.util.Enumeration;
   
   import javax.management.*;
   import javax.management.loading.MLet;
  @@ -19,7 +20,8 @@
    *      
    *   @see <related>
    *   @author Rickard �berg ([EMAIL PROTECTED])
  - *   @version $Revision: 1.4 $
  + *   @author [EMAIL PROTECTED]
  + *   @version $Revision: 1.5 $
    */
   public class Info
      implements InfoMBean, MBeanRegistration
  @@ -39,9 +41,18 @@
      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
         return new ObjectName(OBJECT_NAME);
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to