User: schaefera
  Date: 01/11/26 22:15:27

  Modified:    src/main/org/jboss/management/j2ee ConnectorModule.java
                        EjbModule.java EjbModuleMBean.java EntityBean.java
                        InvalidParentException.java IpAddress.java
                        J2EEApplicationMBean.java
                        J2EEManagedObjectMBean.java J2EEManagement.java
                        J2EEManagementMBean.java J2EEModule.java
                        J2EEResource.java J2EEServerMBean.java JDBC.java
                        JDBCConnection.java JDBCConnectionPool.java
                        JDBCDataSource.java JNDI.java JVM.java
                        JavaMail.java MessageDrivenBean.java Node.java
                        SingleJBossServerManagement.java
                        StatefulSessionBean.java StatelessSessionBean.java
                        Statistic.java TimeStatistic.java WebModule.java
  Added:       src/main/org/jboss/management/j2ee EJB.java
                        EntityBeanMBean.java MessageDrivenBeanMBean.java
                        StatefulSessionBeanMBean.java
                        StatelessSessionBeanMBean.java
  Removed:     src/main/org/jboss/management/j2ee Port.java
  Log:
  Add next layer of JSR-77. This time the EJBs are added. To check it out
  open the HTML-Adaptor, look under domain: SingleJBoss and let the
  testsuite run (refresh from time to time).
  
  Revision  Changes    Path
  1.3       +6 -6      jboss/src/main/org/jboss/management/j2ee/ConnectorModule.java
  
  Index: ConnectorModule.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/ConnectorModule.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ConnectorModule.java      2001/11/20 07:01:39     1.2
  +++ ConnectorModule.java      2001/11/27 06:15:26     1.3
  @@ -1,9 +1,9 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import java.util.Arrays;
  @@ -25,7 +25,7 @@
   * JBoss specific implementation.
   *
   * @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
  -* @version $Revision: 1.2 $
  +* @version $Revision: 1.3 $
   */
   public class ConnectorModule
     extends J2EEModule
  
  
  
  1.4       +29 -5     jboss/src/main/org/jboss/management/j2ee/EjbModule.java
  
  Index: EjbModule.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/EjbModule.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- EjbModule.java    2001/11/26 21:46:51     1.3
  +++ EjbModule.java    2001/11/27 06:15:26     1.4
  @@ -27,7 +27,7 @@
    * {@link javax.management.j2ee.EjbModule EjbModule}.
    *
    * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  - * @version $Revision: 1.3 $
  + * @version $Revision: 1.4 $
    *   
    * <p><b>Revisions:</b>
    *
  @@ -144,14 +144,14 @@
      
      // EJBModule implementation --------------------------------------
      
  -   public EJB[] getEjbs() {
  -      return (EJB[]) mEJBs.toArray( new EJB[ 0 ] );
  +   public ObjectName[] getEjbs() {
  +      return (ObjectName[]) mEJBs.toArray( new ObjectName[ 0 ] );
      }
      
  -   public EJB getEjb( int pIndex ) {
  +   public ObjectName getEjb( int pIndex ) {
         if( pIndex >= 0 && pIndex < mEJBs.size() )
         {
  -         return (EJB) mEJBs.get( pIndex );
  +         return (ObjectName) mEJBs.get( pIndex );
         }
         else
         {
  @@ -159,6 +159,30 @@
         }
      }
      
  +   // J2EEManagedObjectMBean implementation -------------------------
  +   
  +   public void addChild( ObjectName pChild ) {
  +      String lType = J2EEManagedObject.getType( pChild );
  +      if( "EntityBean".equals( lType ) ||
  +         "StatelessSessionBean".equals( lType ) ||
  +         "StatefulSessionBean".equals( lType ) ||
  +         "MessageDrivenBean".equals( lType )
  +      ) {
  +         mEJBs.add( pChild );
  +      }
  +   }
  +   
  +   public void removeChild( ObjectName pChild ) {
  +      String lType = J2EEManagedObject.getType( pChild );
  +      if( "EntityBean".equals( lType ) ||
  +         "StatelessSessionBean".equals( lType ) ||
  +         "StatefulSessionBean".equals( lType ) ||
  +         "MessageDrivenBean".equals( lType )
  +      ) {
  +         mEJBs.remove( pChild );
  +      }
  +   }
  +
      // Object overrides ---------------------------------------------------
      
      public String toString() {
  
  
  
  1.2       +19 -2     jboss/src/main/org/jboss/management/j2ee/EjbModuleMBean.java
  
  Index: EjbModuleMBean.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/EjbModuleMBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EjbModuleMBean.java       2001/11/26 21:46:51     1.1
  +++ EjbModuleMBean.java       2001/11/27 06:15:26     1.2
  @@ -1,10 +1,27 @@
  +/*
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.j2ee.EjbModule;
   
   /**
  -* @author <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>
  -**/
  + * MBean Mangement Inteface for {@link org.jboss.management.j2ee.EjbModule
  + * EjbModule}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.2 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
  + **/
   public interface EjbModuleMBean
      extends EjbModule, J2EEManagedObjectMBean
   {
  
  
  
  1.3       +20 -9     jboss/src/main/org/jboss/management/j2ee/EntityBean.java
  
  Index: EntityBean.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/EntityBean.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- EntityBean.java   2001/11/20 07:01:39     1.2
  +++ EntityBean.java   2001/11/27 06:15:26     1.3
  @@ -1,20 +1,31 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.MalformedObjectNameException;
   import javax.management.ObjectName;
   
   /**
  - * @author Marc Fleury
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.EntityBean EntityBean}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.3 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
    **/
   public class EntityBean
  -   extends J2EEManagedObject
  -   implements javax.management.j2ee.EntityBean
  +   extends EJB
  +   implements EntityBeanMBean
   {
      // -------------------------------------------------------------------------
      // Members
  @@ -42,6 +53,6 @@
      // -------------------------------------------------------------------------  
   
      public String toString() {
  -      return "EntityBean[ " + getName() + " ]";
  +      return "EntityBean { " + super.toString() + " } []";
      }
   }
  
  
  
  1.2       +18 -12    
jboss/src/main/org/jboss/management/j2ee/InvalidParentException.java
  
  Index: InvalidParentException.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/InvalidParentException.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- InvalidParentException.java       2001/11/20 07:01:39     1.1
  +++ InvalidParentException.java       2001/11/27 06:15:26     1.2
  @@ -1,19 +1,25 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   /**
  -* Exception thrown when a given parent has either a
  -* wrong ObjectName, is not available or could not be
  -* reached.
  -*
  -* @author <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>
  -* @version $Revision: 1.1 $
  -**/
  + * Exception thrown when an invalid parent is specified for a
  + * managed object.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.2 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
  + **/
   public class InvalidParentException
      extends WrapperException
   {
  
  
  
  1.5       +17 -6     jboss/src/main/org/jboss/management/j2ee/IpAddress.java
  
  Index: IpAddress.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/IpAddress.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- IpAddress.java    2001/11/23 06:20:12     1.4
  +++ IpAddress.java    2001/11/27 06:15:26     1.5
  @@ -1,9 +1,9 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import java.security.InvalidParameterException;
  @@ -12,7 +12,18 @@
   import javax.management.ObjectName;
   
   /**
  - * @author Marc Fleury
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.IpAddress IpAddress}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.5 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
    **/
   public class IpAddress
      extends J2EEManagedObject
  
  
  
  1.3       +19 -2     
jboss/src/main/org/jboss/management/j2ee/J2EEApplicationMBean.java
  
  Index: J2EEApplicationMBean.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/J2EEApplicationMBean.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- J2EEApplicationMBean.java 2001/11/23 06:20:12     1.2
  +++ J2EEApplicationMBean.java 2001/11/27 06:15:26     1.3
  @@ -1,10 +1,27 @@
  +/*
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.j2ee.J2EEApplication;
   
   /**
  -* @author <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>
  -**/
  + * MBean Mangement Inteface for {@link org.jboss.management.j2ee.J2EEApplication
  + * J2EEApplication}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.3 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Creation
  + * </ul>
  + **/
   public interface J2EEApplicationMBean
      extends J2EEApplication, J2EEManagedObjectMBean
   {
  
  
  
  1.2       +18 -9     
jboss/src/main/org/jboss/management/j2ee/J2EEManagedObjectMBean.java
  
  Index: J2EEManagedObjectMBean.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/J2EEManagedObjectMBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- J2EEManagedObjectMBean.java       2001/11/20 07:01:39     1.1
  +++ J2EEManagedObjectMBean.java       2001/11/27 06:15:26     1.2
  @@ -1,9 +1,9 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import java.io.Serializable;
  @@ -17,10 +17,19 @@
   import org.jboss.system.Service;
   
   /**
  -* JBoss specific implementation.
  -*
  -* @author Marc Fleury
  -**/
  + * MBean Mangement Inteface for {@link org.jboss.management.j2ee.J2EEManagedObject
  + * J2EEManagedObject}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.2 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Creation
  + * </ul>
  + **/
   public interface J2EEManagedObjectMBean
      extends J2EEManagedObject, Service
   {
  
  
  
  1.2       +19 -6     jboss/src/main/org/jboss/management/j2ee/J2EEManagement.java
  
  Index: J2EEManagement.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/J2EEManagement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- J2EEManagement.java       2001/11/20 07:01:39     1.1
  +++ J2EEManagement.java       2001/11/27 06:15:26     1.2
  @@ -1,3 +1,9 @@
  +/*
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import java.util.ArrayList;
  @@ -9,12 +15,19 @@
   import javax.management.ObjectName;
   
   /**
  -* Is the entry point of all managed objects in the management
  -* domain.
  -*
  -* @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
  -* @author <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>
  -**/
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.J2EEManagement J2EEManagement}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.2 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
  + **/
   public class J2EEManagement
      extends J2EEManagedObject
      implements J2EEManagementMBean
  
  
  
  1.2       +19 -6     
jboss/src/main/org/jboss/management/j2ee/J2EEManagementMBean.java
  
  Index: J2EEManagementMBean.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/J2EEManagementMBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- J2EEManagementMBean.java  2001/11/20 07:01:39     1.1
  +++ J2EEManagementMBean.java  2001/11/27 06:15:26     1.2
  @@ -1,14 +1,27 @@
  +/*
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.j2ee.J2EEManagement;
   
   /**
  -* Is the entry point of all managed objects in the management
  -* domain.
  -*
  -* @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
  -* @author <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>
  -**/
  + * MBean Mangement Inteface for {@link org.jboss.management.j2ee.J2EEManagement
  + * J2EEManagement}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.2 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Creation
  + * </ul>
  + **/
   public interface J2EEManagementMBean
      extends J2EEManagement, J2EEManagedObjectMBean
   {
  
  
  
  1.3       +18 -11    jboss/src/main/org/jboss/management/j2ee/J2EEModule.java
  
  Index: J2EEModule.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/J2EEModule.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- J2EEModule.java   2001/11/20 07:01:39     1.2
  +++ J2EEModule.java   2001/11/27 06:15:26     1.3
  @@ -1,9 +1,9 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import java.security.InvalidParameterException;
  @@ -20,12 +20,19 @@
   
   
   /**
  -* This class is the connection between the JSR and the
  -* JBoss specific implementation.
  -*
  -* @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
  -* @version $Revision: 1.2 $
  -*/
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.J2EEModule J2EEModule}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.3 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
  + **/
   public abstract class J2EEModule
      extends J2EEDeployedObject
      implements javax.management.j2ee.J2EEModule
  
  
  
  1.3       +18 -7     jboss/src/main/org/jboss/management/j2ee/J2EEResource.java
  
  Index: J2EEResource.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/J2EEResource.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- J2EEResource.java 2001/11/20 07:01:39     1.2
  +++ J2EEResource.java 2001/11/27 06:15:26     1.3
  @@ -1,17 +1,28 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.MalformedObjectNameException;
   import javax.management.ObjectName;
   
   /**
  -* @author Marc Fleury
  -**/
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.J2EEResource J2EEResource}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.3 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
  + **/
   public abstract class J2EEResource
      extends J2EEManagedObject
      implements javax.management.j2ee.J2EEResource
  
  
  
  1.2       +19 -5     jboss/src/main/org/jboss/management/j2ee/J2EEServerMBean.java
  
  Index: J2EEServerMBean.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/J2EEServerMBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- J2EEServerMBean.java      2001/11/20 07:01:39     1.1
  +++ J2EEServerMBean.java      2001/11/27 06:15:26     1.2
  @@ -1,13 +1,27 @@
  +/*
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.j2ee.J2EEServer;
   
   /**
  -* Is the entry point of all managed objects in the management
  -* domain.
  -*
  -* @author <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>
  -**/
  + * MBean Mangement Inteface for {@link org.jboss.management.j2ee.J2EEServer
  + * J2EEServer}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.2 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Creation
  + * </ul>
  + **/
   public interface J2EEServerMBean
      extends J2EEServer, J2EEManagedObjectMBean
   {
  
  
  
  1.3       +5 -5      jboss/src/main/org/jboss/management/j2ee/JDBC.java
  
  Index: JDBC.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/JDBC.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JDBC.java 2001/11/20 07:01:39     1.2
  +++ JDBC.java 2001/11/27 06:15:26     1.3
  @@ -1,9 +1,9 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.MalformedObjectNameException;
  
  
  
  1.3       +5 -5      jboss/src/main/org/jboss/management/j2ee/JDBCConnection.java
  
  Index: JDBCConnection.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/JDBCConnection.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JDBCConnection.java       2001/11/20 07:01:39     1.2
  +++ JDBCConnection.java       2001/11/27 06:15:26     1.3
  @@ -1,9 +1,9 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import java.security.InvalidParameterException;
  
  
  
  1.3       +18 -7     jboss/src/main/org/jboss/management/j2ee/JDBCConnectionPool.java
  
  Index: JDBCConnectionPool.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/JDBCConnectionPool.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JDBCConnectionPool.java   2001/11/20 07:01:39     1.2
  +++ JDBCConnectionPool.java   2001/11/27 06:15:26     1.3
  @@ -1,9 +1,9 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.MalformedObjectNameException;
  @@ -12,8 +12,19 @@
   import javax.management.j2ee.JDBCDataSource;
   
   /**
  -* @author Marc Fleury
  -**/
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.JDBCConnectionPool JDBCConnectionPool}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.3 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
  + **/
   public class JDBCConnectionPool
      extends JDBCConnection
      implements javax.management.j2ee.JDBCConnectionPool
  
  
  
  1.3       +18 -11    jboss/src/main/org/jboss/management/j2ee/JDBCDataSource.java
  
  Index: JDBCDataSource.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/JDBCDataSource.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JDBCDataSource.java       2001/11/20 07:01:39     1.2
  +++ JDBCDataSource.java       2001/11/27 06:15:26     1.3
  @@ -1,21 +1,28 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.MalformedObjectNameException;
   import javax.management.ObjectName;
   
   /**
  -*
  -*
  -* @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
  -* @author <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>
  -* @version $Revision: 1.2 $
  -**/
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.JDBCDataSource JDBCDataSource}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.3 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
  + **/
   public class JDBCDataSource
      extends J2EEManagedObject
      implements javax.management.j2ee.JDBCDataSource
  
  
  
  1.3       +17 -6     jboss/src/main/org/jboss/management/j2ee/JNDI.java
  
  Index: JNDI.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/JNDI.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JNDI.java 2001/11/20 07:01:39     1.2
  +++ JNDI.java 2001/11/27 06:15:26     1.3
  @@ -1,16 +1,27 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.MalformedObjectNameException;
   import javax.management.ObjectName;
   
   /**
  - * @author Marc Fleury
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.JNDI JNDI}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.3 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
    **/
   public class JNDI
      extends J2EEResource
  
  
  
  1.3       +18 -7     jboss/src/main/org/jboss/management/j2ee/JVM.java
  
  Index: JVM.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/JVM.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JVM.java  2001/11/20 07:01:39     1.2
  +++ JVM.java  2001/11/27 06:15:26     1.3
  @@ -1,9 +1,9 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.MalformedObjectNameException;
  @@ -12,8 +12,19 @@
   import javax.management.j2ee.Node;
   
   /**
  -* @author Marc Fleury
  -**/
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.JVM JVM}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.3 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
  + **/
   public class JVM
      extends J2EEManagedObject
      implements javax.management.j2ee.JVM
  
  
  
  1.3       +17 -6     jboss/src/main/org/jboss/management/j2ee/JavaMail.java
  
  Index: JavaMail.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/JavaMail.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JavaMail.java     2001/11/20 07:01:39     1.2
  +++ JavaMail.java     2001/11/27 06:15:26     1.3
  @@ -1,16 +1,27 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.MalformedObjectNameException;
   import javax.management.ObjectName;
   
   /**
  - * @author Marc Fleury
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.JavaMail JavaMail}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.3 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
    **/
   public class JavaMail
      extends J2EEResource
  
  
  
  1.3       +19 -10    jboss/src/main/org/jboss/management/j2ee/MessageDrivenBean.java
  
  Index: MessageDrivenBean.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/MessageDrivenBean.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MessageDrivenBean.java    2001/11/20 07:01:39     1.2
  +++ MessageDrivenBean.java    2001/11/27 06:15:26     1.3
  @@ -1,22 +1,31 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.MalformedObjectNameException;
   import javax.management.ObjectName;
   
  -import javax.management.j2ee.EJB;
  -
   /**
  - * @author Marc Fleury
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.MessageDrivenBean MessageDrivenBean}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.3 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
    **/
   public class MessageDrivenBean
  -   extends J2EEManagedObject
  -   implements javax.management.j2ee.MessageDrivenBean
  +   extends EJB
  +   implements MessageDrivenBeanMBean
   {
      // -------------------------------------------------------------------------
      // Members
  
  
  
  1.5       +18 -7     jboss/src/main/org/jboss/management/j2ee/Node.java
  
  Index: Node.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/Node.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Node.java 2001/11/23 06:20:12     1.4
  +++ Node.java 2001/11/27 06:15:26     1.5
  @@ -1,9 +1,9 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import java.util.Arrays;
  @@ -17,8 +17,19 @@
   import javax.management.ObjectName;
   
   /**
  -* @author Marc Fleury
  -**/
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.Node Node}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.5 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
  + **/
   public class Node
      extends J2EEManagedObject
      implements NodeMBean
  
  
  
  1.4       +17 -3     
jboss/src/main/org/jboss/management/j2ee/SingleJBossServerManagement.java
  
  Index: SingleJBossServerManagement.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/SingleJBossServerManagement.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SingleJBossServerManagement.java  2001/11/23 06:20:12     1.3
  +++ SingleJBossServerManagement.java  2001/11/27 06:15:26     1.4
  @@ -1,3 +1,9 @@
  +/*
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import java.util.ArrayList;
  @@ -12,9 +18,17 @@
   
   /**
   * Represents the single JBoss server management domain
  -*
  -* @author <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>
  -**/
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.4 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
  + **/
   public class SingleJBossServerManagement
      extends J2EEManagement
   {
  
  
  
  1.3       +19 -8     
jboss/src/main/org/jboss/management/j2ee/StatefulSessionBean.java
  
  Index: StatefulSessionBean.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/StatefulSessionBean.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StatefulSessionBean.java  2001/11/20 07:01:39     1.2
  +++ StatefulSessionBean.java  2001/11/27 06:15:26     1.3
  @@ -1,20 +1,31 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.MalformedObjectNameException;
   import javax.management.ObjectName;
   
   /**
  - * @author Marc Fleury
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.StatefulSessionBean StatefulSessionBean}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.3 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
    **/
   public class StatefulSessionBean
  -   extends J2EEManagedObject
  -   implements javax.management.j2ee.SessionBean
  +   extends EJB
  +   implements StatefulSessionBeanMBean
   {
      // -------------------------------------------------------------------------
      // Members
  
  
  
  1.3       +19 -8     
jboss/src/main/org/jboss/management/j2ee/StatelessSessionBean.java
  
  Index: StatelessSessionBean.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/StatelessSessionBean.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StatelessSessionBean.java 2001/11/20 07:01:39     1.2
  +++ StatelessSessionBean.java 2001/11/27 06:15:26     1.3
  @@ -1,20 +1,31 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import javax.management.MalformedObjectNameException;
   import javax.management.ObjectName;
   
   /**
  - * @author Marc Fleury
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.StatelessSessionBean StatelessSessionBean}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.3 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
    **/
   public class StatelessSessionBean
  -   extends J2EEManagedObject
  -   implements javax.management.j2ee.StatelessSessionBean
  +   extends EJB
  +   implements StatelessSessionBeanMBean
   {
      // -------------------------------------------------------------------------
      // Members
  
  
  
  1.2       +5 -5      jboss/src/main/org/jboss/management/j2ee/Statistic.java
  
  Index: Statistic.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/Statistic.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Statistic.java    2001/08/09 06:30:58     1.1
  +++ Statistic.java    2001/11/27 06:15:26     1.2
  @@ -1,9 +1,9 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   /**
  
  
  
  1.2       +6 -6      jboss/src/main/org/jboss/management/j2ee/TimeStatistic.java
  
  Index: TimeStatistic.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/TimeStatistic.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TimeStatistic.java        2001/08/09 06:30:58     1.1
  +++ TimeStatistic.java        2001/11/27 06:15:26     1.2
  @@ -1,9 +1,9 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   /**
  @@ -11,7 +11,7 @@
   *
   * @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
   * @author <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>
  -* @version $Revision: 1.1 $
  +* @version $Revision: 1.2 $
   **/
   public class TimeStatistic
      extends Statistic
  
  
  
  1.3       +18 -11    jboss/src/main/org/jboss/management/j2ee/WebModule.java
  
  Index: WebModule.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/WebModule.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- WebModule.java    2001/11/20 07:01:39     1.2
  +++ WebModule.java    2001/11/27 06:15:26     1.3
  @@ -1,9 +1,9 @@
   /*
  -* JBoss, the OpenSource J2EE webOS
  -*
  -* Distributable under LGPL license.
  -* See terms of license at gnu.org.
  -*/
  + * JBoss, the OpenSource J2EE webOS
  + *
  + * Distributable under LGPL license.
  + * See terms of license at gnu.org.
  + */
   package org.jboss.management.j2ee;
   
   import java.util.Arrays;
  @@ -21,12 +21,19 @@
   import java.security.InvalidParameterException;
   
   /**
  -* This class is the connection between the JSR and the
  -* JBoss specific implementation.
  -*
  -* @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
  -* @version $Revision: 1.2 $
  -*/
  + * Root class of the JBoss JSR-77 implementation of
  + * {@link javax.management.j2ee.WebModule WebModule}.
  + *
  + * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
  + * @version $Revision: 1.3 $
  + *   
  + * <p><b>Revisions:</b>
  + *
  + * <p><b>20011126 Andreas Schaefer:</b>
  + * <ul>
  + * <li> Adjustments to the JBoss Guidelines
  + * </ul>
  + **/
   public class WebModule
     extends J2EEModule
     implements javax.management.j2ee.WebModule
  
  
  
  1.1                  jboss/src/main/org/jboss/management/j2ee/EJB.java
  
  Index: EJB.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  package org.jboss.management.j2ee;
  
  import javax.management.MalformedObjectNameException;
  import javax.management.MBeanServer;
  import javax.management.ObjectName;
  
  import org.jboss.metadata.BeanMetaData;
  import org.jboss.metadata.SessionMetaData;
  
  /**
   * Root class of the JBoss JSR-77 implementation of
   * {@link javax.management.j2ee.EJB EJB}.
   *
   * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
   * @version $Revision: 1.1 $
   *   
   * <p><b>Revisions:</b>
   *
   * <p><b>20011126 Andreas Schaefer:</b>
   * <ul>
   * <li> Creation
   * </ul>
   **/
  public abstract class EJB
     extends J2EEManagedObject
     implements javax.management.j2ee.EJB
  {
     // Constants -----------------------------------------------------
     
     // Attributes ----------------------------------------------------
     
     // Static --------------------------------------------------------
     
     private static final String[] sTypes = new String[] {
                                               "EntityBean",
                                               "StatefulSessionBean",
                                               "StatelessSessionBean",
                                               "MessageDrivenBean"
                                            };
     
     public static ObjectName create( MBeanServer pServer, String pEjbModule, 
BeanMetaData pBeanMeta ) {
        try {
           int lType =
              pBeanMeta.isSession() ?
                 ( ( (SessionMetaData) pBeanMeta ).isStateless() ? 2 : 1 ) :
                 ( pBeanMeta.isMessageDriven() ? 3 : 0 );
           // Now create the J2EEApplication
           return pServer.createMBean(
              "org.jboss.management.j2ee." + sTypes[ lType ],
              null,
              new Object[] {
                 pBeanMeta.getJndiName(),
                 new ObjectName( pEjbModule )
              },
              new String[] {
                 String.class.getName(),
                 ObjectName.class.getName()
              }
           ).getObjectName();
        }
        catch( Exception e ) {
           e.printStackTrace();
           return null;
        }
     }
     
     public static void destroy( MBeanServer pServer, String pEJBName ) {
        try {
           // Now remove the EJB
           pServer.unregisterMBean( new ObjectName( pEJBName ) );
        }
        catch( Exception e ) {
           e.printStackTrace();
        }
     }
     
     // Constructors --------------------------------------------------
     
     /**
      * @param pName Name of the EntityBean
      *
      * @throws InvalidParameterException If list of nodes or ports was null or empty
      **/
     public EJB( String pType, String pName, ObjectName pEJBModule )
        throws
           MalformedObjectNameException,
           InvalidParentException
     {
        super( pType, pName, pEJBModule );
     }
  
     // -------------------------------------------------------------------------
     // Properties (Getters/Setters)
     // -------------------------------------------------------------------------  
  
     public String toString() {
        return "EJB { " + super.toString() + " } []";
     }
  }
  
  
  
  1.1                  jboss/src/main/org/jboss/management/j2ee/EntityBeanMBean.java
  
  Index: EntityBeanMBean.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  package org.jboss.management.j2ee;
  
  import javax.management.j2ee.EntityBean;
  
  /**
   * MBean Mangement Inteface for {@link org.jboss.management.j2ee.EntityBean
   * EntityBean}.
   *
   * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
   * @version $Revision: 1.1 $
   *   
   * <p><b>Revisions:</b>
   *
   * <p><b>20011126 Andreas Schaefer:</b>
   * <ul>
   * <li> Creation
   * </ul>
   **/
  public interface EntityBeanMBean
     extends EntityBean, J2EEManagedObjectMBean
  {
  }
  
  
  
  1.1                  
jboss/src/main/org/jboss/management/j2ee/MessageDrivenBeanMBean.java
  
  Index: MessageDrivenBeanMBean.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  package org.jboss.management.j2ee;
  
  import javax.management.j2ee.MessageDrivenBean;
  
  /**
   * MBean Mangement Inteface for {@link org.jboss.management.j2ee.MessageDrivenBean
   * MessageDrivenBean}.
   *
   * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
   * @version $Revision: 1.1 $
   *   
   * <p><b>Revisions:</b>
   *
   * <p><b>20011126 Andreas Schaefer:</b>
   * <ul>
   * <li> Creation
   * </ul>
   **/
  public interface MessageDrivenBeanMBean
     extends MessageDrivenBean, J2EEManagedObjectMBean
  {
  }
  
  
  
  1.1                  
jboss/src/main/org/jboss/management/j2ee/StatefulSessionBeanMBean.java
  
  Index: StatefulSessionBeanMBean.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  package org.jboss.management.j2ee;
  
  import javax.management.j2ee.StatefulSessionBean;
  
  /**
   * MBean Mangement Inteface for {@link org.jboss.management.j2ee.StatefulSessionBean
   * StatefulSessionBean}.
   *
   * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
   * @version $Revision: 1.1 $
   *   
   * <p><b>Revisions:</b>
   *
   * <p><b>20011126 Andreas Schaefer:</b>
   * <ul>
   * <li> Creation
   * </ul>
   **/
  public interface StatefulSessionBeanMBean
     extends StatefulSessionBean, J2EEManagedObjectMBean
  {
  }
  
  
  
  1.1                  
jboss/src/main/org/jboss/management/j2ee/StatelessSessionBeanMBean.java
  
  Index: StatelessSessionBeanMBean.java
  ===================================================================
  /*
   * JBoss, the OpenSource J2EE webOS
   *
   * Distributable under LGPL license.
   * See terms of license at gnu.org.
   */
  package org.jboss.management.j2ee;
  
  import javax.management.j2ee.StatelessSessionBean;
  
  /**
   * MBean Mangement Inteface for {@link org.jboss.management.j2ee.StatelessSessionBean
   * StatelessSessionBean}.
   *
   * @author  <a href="mailto:[EMAIL PROTECTED]";>Andreas Schaefer</a>.
   * @version $Revision: 1.1 $
   *   
   * <p><b>Revisions:</b>
   *
   * <p><b>20011126 Andreas Schaefer:</b>
   * <ul>
   * <li> Creation
   * </ul>
   **/
  public interface StatelessSessionBeanMBean
     extends StatelessSessionBean, J2EEManagedObjectMBean
  {
  }
  
  
  

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

Reply via email to