executor, null);
executor);
   public void addTemporaryDestination(JBossDestination dest) throws JMSException   {      try      {         if (closed)         {            throw new IllegalStateException("Session is closed");         }         if (!dest.isTemporary())         {            throw new InvalidDestinationException("Destination:" + dest + " is not a temporary destination");         }         connectionEndpoint.addTemporaryDestination(dest);                  //Register with the destination manager                  ManagedDestination mDest;                  int fullSize = connectionEndpoint.getDefaultTempQueueFullSize();         int pageSize = connectionEndpoint.getDefaultTempQueuePageSize();         int downCacheSize = connectionEndpoint.getDefaultTempQueueDownCacheSize();                  if (dest.isTopic())         {            mDest = new ManagedTopic(dest.getName(), fullSize, pageSize, downCacheSize);         }         else         {            mDest = new ManagedQueue(dest.getName(), fullSize, pageSize, downCacheSize);         }                  dm.registerDestination(mDest);                  if (dest.isQueue())         {            QueuedExecutor executor = (QueuedExecutor)pool.get();            Queue q =                new Queue(idm.getId(), ms, pm, true, false, fullSize, pageSize, downCacheSize,                         executor, null);                        //Make a binding for this queue            queuePostOffice.bindQueue(dest.getName(), dest.getName(), q);           }               }      catch (Throwable t)      {         throw ExceptionUtil.handleJMSInvocation(t, this + " addTemporaryDestination");      }   }