User: salborini
  Date: 00/10/03 15:24:01

  Modified:    src/main/org/jboss/configuration ConfigurationService.java
  Log:
  The configuration service threw an exception for services removed from jboss.conf 
but not from jboss.jcml.
  
  Revision  Changes    Path
  1.5       +10 -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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ConfigurationService.java 2000/09/28 01:16:57     1.4
  +++ ConfigurationService.java 2000/10/03 22:24:01     1.5
  @@ -27,7 +27,7 @@
    *
    *   @see <related>
    *   @author Rickard �berg ([EMAIL PROTECTED])
  - *   @version $Revision: 1.4 $
  + *   @version $Revision: 1.5 $
    */
   public class ConfigurationService
      extends ServiceMBeanSupport
  @@ -98,7 +98,15 @@
   
                                String name = mbeanElement.getAttribute("name");
                                ObjectName objectName = new ObjectName(name);
  -                             MBeanInfo info = server.getMBeanInfo(objectName);
  +                             
  +                             MBeanInfo info;
  +                             try {
  +                                     info = server.getMBeanInfo(objectName);
  +                             } catch (InstanceNotFoundException e) {
  +                                     // the service is no longer available (removed 
from jboss.conf?)
  +                                     // it's ok, skip to next one
  +                                     continue;
  +                             }
   
                                NodeList attrs = 
mbeanElement.getElementsByTagName("attribute");
                                for (int j = 0; j < attrs.getLength(); j++)
  
  
  

Reply via email to