User: kimptoc 
  Date: 01/09/01 12:50:32

  Modified:    src/main/org/jboss/jmx/server JMXAdaptorService.java
  Log:
  remove deprecated logging import, where possible, otherwise comment as needing 
replacement with log4j.... must find out how it is use.... would be good if the 
deprecation message pointed to an example to use...
  
  Revision  Changes    Path
  1.6       +25 -26    jboss/src/main/org/jboss/jmx/server/JMXAdaptorService.java
  
  Index: JMXAdaptorService.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/jmx/server/JMXAdaptorService.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JMXAdaptorService.java    2001/08/30 03:18:14     1.5
  +++ JMXAdaptorService.java    2001/09/01 19:50:32     1.6
  @@ -4,7 +4,7 @@
    * Distributable under LGPL license.
    * See terms of license at gnu.org.
    */
  - 
  +
   package org.jboss.jmx.server;
   
   import java.io.File;
  @@ -27,66 +27,65 @@
   import javax.management.MBeanServer;
   import javax.naming.InitialContext;
   
  -import org.jboss.logging.Log;
   import org.jboss.system.ServiceMBeanSupport;
   
   /**
  - *   <description> 
  - *      
  + *   <description>
  + *
    *   @see <related>
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Rickard Öberg</a>
  - *   @version $Revision: 1.5 $
  + *   @version $Revision: 1.6 $
    */
   public class JMXAdaptorService
      extends ServiceMBeanSupport
      implements JMXAdaptorServiceMBean
   {
      // Constants -----------------------------------------------------
  -     public static String JNDI_NAME = "jmx";
  -    
  +    public static String JNDI_NAME = "jmx";
  +
      // Attributes ----------------------------------------------------
  -     MBeanServer server;
  -     JMXAdaptorImpl adaptor;
  -   
  +    MBeanServer server;
  +    JMXAdaptorImpl adaptor;
  +
      // Static --------------------------------------------------------
   
      // Constructors --------------------------------------------------
  -   
  +
      // Public --------------------------------------------------------
      public ObjectName getObjectName(MBeanServer server, ObjectName name)
         throws javax.management.MalformedObjectNameException
      {
  -             this.server = server;
  +        this.server = server;
         return new ObjectName(OBJECT_NAME);
      }
  -   
  +
      public String getName()
      {
         return "JMX RMI Adaptor";
  -     }
  -   
  +    }
  +
      // Protected -----------------------------------------------------
      protected void initService()
         throws Exception
      {
  -     adaptor = new JMXAdaptorImpl(server);
  +    adaptor = new JMXAdaptorImpl(server);
      }
  -     
  +    
      protected void startService()
         throws Exception
      {
  -             new InitialContext().bind(JNDI_NAME, adaptor);
  +        new InitialContext().bind(JNDI_NAME, adaptor);
      }
  -   
  +
      protected void stopService()
      {
  -             try
  -             {
  -                     new InitialContext().unbind(JNDI_NAME);
  -             } catch (Exception e)
  -             {
  -                     log.exception(e);
  -             }
  +        try
  +        {
  +            new InitialContext().unbind(JNDI_NAME);
  +        } catch (Exception e)
  +        {
  +            log.exception(e);
  +        }
      }
   }
   
  
  
  

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

Reply via email to