Code example for UndeclaredThrowableException

Methods: getUndeclaredThrowable

0
            managedBroker.deleteQueue(name);
        } 
        catch (UndeclaredThrowableException e)
        { 
            fail(((MBeanException) ((InvocationTargetException)
                    e.getUndeclaredThrowable()).getTargetException()).getTargetException().getMessage());
        } 
    } 
 
    /** 
     * Test that a durable queue can be created via JMX. 
     * 
     * @throws IOException                  if there is a problem via the JMX connection 
     * @throws javax.management.JMException if there is a problem with the JMX command 
     */ 
    public void testDeletionDurableViaJMX() throws IOException, JMException 
    { 
        String name = getName();
 
        _jmxUtils.createQueue(VIRTUALHOST_NAME, name, null, true);