Author: djencks Date: Thu Dec 9 07:35:19 2004 New Revision: 111392 URL: http://svn.apache.org/viewcvs?view=rev&rev=111392 Log: partial fix for GERONIMO-525, wrong exception rethrowing behavior Modified: geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/KernelDelegate.java
Modified: geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/KernelDelegate.java Url: http://svn.apache.org/viewcvs/geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/KernelDelegate.java?view=diff&rev=111392&p1=geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/KernelDelegate.java&r1=111391&p2=geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/KernelDelegate.java&r2=111392 ============================================================================== --- geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/KernelDelegate.java (original) +++ geronimo/trunk/modules/kernel/src/java/org/apache/geronimo/kernel/jmx/KernelDelegate.java Thu Dec 9 07:35:19 2004 @@ -156,6 +156,12 @@ public ObjectName startConfiguration(URI configID) throws NoSuchConfigException, IOException, InvalidConfigException { try { return (ObjectName) invokeKernel("startConfiguration", new Object[]{configID}, new String[]{URI.class.getName()}); + } catch (NoSuchConfigException e) { + throw e; + } catch (IOException e) { + throw e; + } catch (InvalidConfigException e) { + throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) { @@ -166,6 +172,8 @@ public void stopConfiguration(URI configID) throws NoSuchConfigException { try { invokeKernel("stopConfiguration", new Object[]{configID}, new String[]{URI.class.getName()}); + } catch (NoSuchConfigException e) { + throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) { @@ -176,6 +184,8 @@ public int getConfigurationState(URI configID) throws NoSuchConfigException { try { return ((Integer) invokeKernel("getConfigurationState", new Object[]{configID}, new String[]{URI.class.getName()})).intValue(); + } catch (NoSuchConfigException e) { + throw e; } catch (RuntimeException e) { throw e; } catch (Exception e) {