User: user57  
  Date: 02/01/02 20:00:59

  Modified:    src/main/org/jboss/naming JNDIView.java JNDIViewMBean.java
                        NamingServiceMBean.java
  Log:
   o migrated all components to a new JMX domain name model.  jboss.system
     is now where to core/spine components live.  moved all components that
     were in JBOSS-SYSTEM that did not move into a jboss.* domain into
     jboss (where the server is now registered).  The point was to limit the
     members of jboss.system to core bits only.
   o Created org.jboss.system.Server, which does the work of initialization
     that org.jboss.Main used to do.  Main now only parses the command line,
     sets up basic legecy properties and creates a Server instance.
   o Moved functionality of Shutdown (component not cl tool) into Server (
     which is bound as jboss.system:service=Server)
   o Moved more Runtime access from Info into Server.  Exposed memory info
     as attributes.
   o Logging a WARN everywhere that uses System.getProperty("jboss.system.home")
     as that should go away soon/eventually.
   o Initialized the invokerMap in the harmi impl to avoid NPE
   o Made getopt.jar a member of the lib/* dir instead of adding it to the
     run.jar and shutdown.jars each time.
   o Minor cosmetic changes along the way.
  
  Revision  Changes    Path
  1.13      +20 -16    jboss/src/main/org/jboss/naming/JNDIView.java
  
  Index: JNDIView.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/naming/JNDIView.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- JNDIView.java     2001/12/03 18:16:40     1.12
  +++ JNDIView.java     2002/01/03 04:00:59     1.13
  @@ -4,6 +4,7 @@
    * Distributable under LGPL license.
    * See terms of license at gnu.org.
    */
  +
   package org.jboss.naming;
   
   import java.io.InputStream;
  @@ -27,19 +28,22 @@
   import org.jboss.ejb.Container;
   import org.jboss.ejb.ContainerFactoryMBean;
   import org.jboss.system.ServiceMBeanSupport;
  -
  -/** A simple utlity mbean that allows one to recursively list the default
  -JBoss InitialContext.
   
  -Deploy by adding:
  -<mbean code="org.jboss.naming.JNDIView" name="JBOSS-SYSTEM:service=JNDIView" />
  -to the jboss.jcml file.
  -
  -@author <a href="mailto:[EMAIL PROTECTED]";>Scott Stark</a>.
  -@author Vladimir Blagojevic <[EMAIL PROTECTED]>
  -@version $Revision: 1.12 $
  -*/
  -public class JNDIView extends ServiceMBeanSupport implements JNDIViewMBean
  +/**
  + * A simple utlity mbean that allows one to recursively list the default
  + * JBoss InitialContext.
  + *
  + * Deploy by adding:
  + * <mbean code="org.jboss.naming.JNDIView" name=":service=JNDIView" />
  + * to the jboss.jcml file.
  + *
  + * @author <a href="mailto:[EMAIL PROTECTED]";>Scott Stark</a>.
  + * @author Vladimir Blagojevic <[EMAIL PROTECTED]>
  + * @version $Revision: 1.13 $
  + */
  +public class JNDIView 
  +   extends ServiceMBeanSupport 
  +   implements JNDIViewMBean
   {
       // Constants -----------------------------------------------------
   
  @@ -71,10 +75,10 @@
           try
           {
               applications = (Iterator) server.invoke(
  -            new ObjectName(ContainerFactoryMBean.OBJECT_NAME),
  -            "getDeployedApplications",
  -            new Object[] { },
  -            new String[] { });
  +               new ObjectName(ContainerFactoryMBean.OBJECT_NAME),
  +               "getDeployedApplications",
  +               new Object[0],
  +               new String[0]);
           }
           catch(Exception e)
           {
  
  
  
  1.8       +2 -2      jboss/src/main/org/jboss/naming/JNDIViewMBean.java
  
  Index: JNDIViewMBean.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/naming/JNDIViewMBean.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- JNDIViewMBean.java        2001/08/30 03:31:21     1.7
  +++ JNDIViewMBean.java        2002/01/03 04:00:59     1.8
  @@ -13,12 +13,12 @@
    *   
    *      
   @author <a href="mailto:[EMAIL PROTECTED]";>Scott Stark</a>.
  -@version $Revision: 1.7 $
  +@version $Revision: 1.8 $
   */
   public interface JNDIViewMBean extends org.jboss.system.ServiceMBean
   {
       // Constants -----------------------------------------------------
  -    public static final String OBJECT_NAME = ":service=JNDIView";
  +    public static final String OBJECT_NAME = "jboss:service=JNDIView";
       
       // Public --------------------------------------------------------
   
  
  
  
  1.8       +2 -2      jboss/src/main/org/jboss/naming/NamingServiceMBean.java
  
  Index: NamingServiceMBean.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/naming/NamingServiceMBean.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- NamingServiceMBean.java   2001/08/30 03:31:21     1.7
  +++ NamingServiceMBean.java   2002/01/03 04:00:59     1.8
  @@ -11,13 +11,13 @@
    *      
    *   @see <related>
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Rickard Öberg</a>
  - *   @version $Revision: 1.7 $
  + *   @version $Revision: 1.8 $
    */
   public interface NamingServiceMBean
      extends org.jboss.system.ServiceMBean, org.jnp.server.MainMBean
   {
      // Constants -----------------------------------------------------
  -   public static final String OBJECT_NAME = ":service=Naming";
  +   public static final String OBJECT_NAME = "jboss:service=Naming";
       
      // Public --------------------------------------------------------
   }
  
  
  

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

Reply via email to