cm.deployTemporaryCoreDestination(dest.isQueue(), dest.getName(), ms, pm);
cm.deployCoreDestination(dest.isQueue(), dest.getName(), ms, pm, 50000, 1000, 1000);
   public void addTemporaryDestination(JBossDestination dest) throws JMSException   {      if (closed)      {         throw new IllegalStateException("Session is closed");      }      if (!dest.isTemporary())      {         throw new InvalidDestinationException("Destination:" + dest + " is not a temporary destination");      }      connectionEndpoint.addTemporaryDestination(dest);      cm.deployTemporaryCoreDestination(dest.isQueue(), dest.getName(), ms, pm);   }