User: user57  
  Date: 01/04/19 21:09:58

  Modified:    src/main/org/jboss/configuration ConfigurationService.java
  Log:
   o decodes target exceptions for RuntimeOperationsException
  
  Revision  Changes    Path
  1.22      +4 -1      jboss/src/main/org/jboss/configuration/ConfigurationService.java
  
  Index: ConfigurationService.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/configuration/ConfigurationService.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- ConfigurationService.java 2001/04/13 19:06:59     1.21
  +++ ConfigurationService.java 2001/04/20 04:09:58     1.22
  @@ -41,7 +41,7 @@
    *   @see org.jboss.util.ServiceControl
    *   @author Rickard Öberg ([EMAIL PROTECTED])
    *   @author [EMAIL PROTECTED]
  - *   @version $Revision: 1.21 $
  + *   @version $Revision: 1.22 $
    */
   public class ConfigurationService
      extends ServiceMBeanSupport
  @@ -331,12 +331,15 @@
                           // Create MBean
                           ObjectInstance instance = server.createMBean(code, 
objectName,
                               new ObjectName(server.getDefaultDomain(), "service", 
"MLet"));
  +                        
                           info = server.getMBeanInfo(instance.getObjectName());
                        } catch (Throwable ex)
                        {
                           log.error("Could not create MBean "+name+"("+code+")");
                           if (ex instanceof RuntimeMBeanException)
                              ex = ((RuntimeMBeanException)ex).getTargetException();
  +                        if (ex instanceof RuntimeOperationsException)
  +                           ex = 
((RuntimeOperationsException)ex).getTargetException();
                           else if (ex instanceof MBeanException)
                              ex = ((MBeanException)ex).getTargetException();
                           else if (ex instanceof ReflectionException)
  
  
  

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

Reply via email to