throw new JBossJMSException("JNDI failure", e);
throw new MessagingJMSException("JNDI failure", e);
   public void unregisterDestination(boolean isQueue, String name) throws JMSException   {      String jndiName = null;      if (isQueue)      {         jndiName = (String)queueNameToJNDI.remove(name);      }      else      {         jndiName = (String)topicNameToJNDI.remove(name);      }      if (jndiName == null)      {         return;      }      try      {         initialContext.unbind(jndiName);      }      catch(Exception e)      {         throw new JBossJMSException("JNDI failure", e);      }      serverPeer.getSecurityManager().clearSecurityConfig(isQueue, name);      log.debug("unregistered " + (isQueue ? "queue " : "topic ") + name);   }