geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject cvs commit: incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/deployment/task DeployGeronimoMBean.java
Date Fri, 14 Nov 2003 16:21:03 GMT
djencks     2003/11/14 08:21:03

  Modified:    modules/kernel/src/java/org/apache/geronimo/kernel/deployment/task
                        DeployGeronimoMBean.java
  Log:
  Try to get the GeronimoMBeanInfo from the implementation class so it can be self-describing
  
  Revision  Changes    Path
  1.3       +8 -1      incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/deployment/task/DeployGeronimoMBean.java
  
  Index: DeployGeronimoMBean.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/deployment/task/DeployGeronimoMBean.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DeployGeronimoMBean.java	11 Nov 2003 16:38:14 -0000	1.2
  +++ DeployGeronimoMBean.java	14 Nov 2003 16:21:03 -0000	1.3
  @@ -116,6 +116,13 @@
                   if (log.isTraceEnabled()) {
                       log.trace("Creating GeronimoMBean name=" + metadata.getName());
                   }
  +                if (metadata.getGeronimoMBeanInfo() == null) {
  +                    try {
  +                        metadata.setGeronimoMBeanInfo(GeronimoMBean.getGeronimoMBeanInfo(metadata.getGeronimoMBeanDescriptor()));
  +                    } catch (Exception e) {
  +                        //ignore
  +                    }
  +                }
                   GeronimoMBean mbean = (GeronimoMBean) server.instantiate("org.apache.geronimo.kernel.service.GeronimoMBean");
                   mbean.setClassSpace(metadata.getLoaderName());
                   GeronimoMBeanInfo geronimoMBeanInfo = metadata.getGeronimoMBeanInfo();
  
  
  

Mime
View raw message