getRMIAdapter().invoke(objectName, "removeAllMessages", new String[0], new String[0]);
}
else
{
throw new HermesException("JBoss does not support truncating a durable subscription");
}
}
catch (HermesException ex)
{
throw ex;
}
catch (Exception e)
{
log.error(e.getMessage(), e);
rmiAdaptor = null;
throw new HermesException(e);
}
return rval;
}