User: vladimir
  Date: 01/03/14 19:23:44

  Modified:    src/main/org/jboss/configuration ConfigurationService.java
  Log:
  The fix for the following problemisynopsis:
  
  1) Start JBoss.
  2) Using HTMLAdaptor admin dynamically create, init and start new MBean not
  currently present in JBoss configuration.  Go to ServiceControl MBean View in
  HTMLAdaptor invoke  "saveConfiguration".
  3) Stop JBoss.
  4) Start JBoss again, MBean dynamically added in previous "run" is neither
  registered nor started although configuration s
  
  Revision  Changes    Path
  1.20      +3 -2      jboss/src/main/org/jboss/configuration/ConfigurationService.java
  
  Index: ConfigurationService.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/jboss/src/main/org/jboss/configuration/ConfigurationService.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- ConfigurationService.java 2001/03/07 09:46:53     1.19
  +++ ConfigurationService.java 2001/03/15 03:23:44     1.20
  @@ -31,7 +31,7 @@
    *
    *   @see <related>
    *   @author Rickard �berg ([EMAIL PROTECTED])
  - *   @version $Revision: 1.19 $
  + *   @version $Revision: 1.20 $
    */
   public class ConfigurationService
      extends ServiceMBeanSupport
  @@ -175,6 +175,7 @@
               mbeanElement.setAttribute("name",name.toString());
   
               MBeanInfo info = server.getMBeanInfo(name);
  +            mbeanElement.setAttribute("code",info.getClassName());
               MBeanAttributeInfo[] attributes = info.getAttributes();
               boolean hasAttributes = true;
               for (int i = 0; i < attributes.length; i++)
  @@ -290,7 +291,7 @@
             {
                  throw new IOException(se.getMessage());
             }
  -
  +          create(autoConf);
             load(autoConf);
          }
   
  
  
  

Reply via email to