User: user57  
  Date: 02/02/16 02:53:31

  Modified:    src/main/org/jboss/test/jmx/nullinfo NullInfo.java
  Log:
   o bye System.err
  
  Revision  Changes    Path
  1.2       +10 -6     jbosstest/src/main/org/jboss/test/jmx/nullinfo/NullInfo.java
  
  Index: NullInfo.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmx/nullinfo/NullInfo.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NullInfo.java     5 Dec 2001 21:22:21 -0000       1.1
  +++ NullInfo.java     16 Feb 2002 10:53:31 -0000      1.2
  @@ -3,30 +3,34 @@
   import javax.management.*;
   
   public class NullInfo implements DynamicMBean{
  +
  +    static org.apache.log4j.Category log =
  +       org.apache.log4j.Category.getInstance(NullInfo.class);
  +   
      //This is what kills it, the others aren't even called
      public MBeanInfo getMBeanInfo(){
  -      System.err.println("Returning null from getMBeanInfo");
  +      log.debug("Returning null from getMBeanInfo");
         return null;
      }
      
      public Object invoke(String action, Object[] params, String[] sig){
  -      System.err.println("Returning null from invoke");
  +      log.debug("Returning null from invoke");
         return null;
      }
      
      public Object getAttribute(String attrName){
  -      System.err.println("Returning null from getAttribute");
  +      log.debug("Returning null from getAttribute");
         return null;
      }
      public AttributeList getAttributes(String[] attrs){
  -      System.err.println("Returning null from getAttributes");
  +      log.debug("Returning null from getAttributes");
         return null;
      }
      public void setAttribute(Attribute attr){
  -      System.err.println("setAttribute called");
  +      log.debug("setAttribute called");
      }
      public AttributeList setAttributes(AttributeList attrs){
  -      System.err.println("Returning null from setAttributes");
  +      log.debug("Returning null from setAttributes");
         return null;
      }
   }
  
  
  

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

Reply via email to