JBossTemporaryQueue queue = new JBossTemporaryQueue(connectionDelegate); connectionDelegate.addTemporaryDestination(queue);
JBossTemporaryQueue queue = new JBossTemporaryQueue(sessionDelegate); sessionDelegate.addTemporaryDestination(queue);
   public TemporaryQueue createTemporaryQueue() throws JMSException   {      //As per spec. section 4.11      if (sessionType == TYPE_TOPIC_SESSION)      {         throw new IllegalStateException("Cannot create a temp. queue using a TopicSession");      }      JBossTemporaryQueue queue = new JBossTemporaryQueue(connectionDelegate);      connectionDelegate.addTemporaryDestination(queue);      return queue;   }