public synchronized TemporaryQueue createTemporaryQueue() throws JMSException {
  ensureOpen();
  if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE,"Creating temporary Queue");
  }
  return new GSTemporaryQueueImpl(m_sessionID + ":" + getRandomInt(),m_sessionID);
}

public synchronized TemporaryQueue createTemporaryQueue ( ) throws JMSException { ensureOpen ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , "Creating temporary Queue" ) ; } return new GSTemporaryQueueImpl ( m_sessionID + ":" + getRandomInt ( ) , m_sessionID ) ; }
we use the same space proxy we obtained in the session and we write another external entry , which will have a class name of ' tempqueue ' . the only message consumers that can consume from a temporary destination are those created by the same connection that created the destination . any message producer can send to the temporary destination . if you close the connection that a temporary destination belongs to , the destination is closed and its contents lost . you can use temporary destinations to implement a simple request / reply mechanism . if you create a temporary destination and specify it as the value of the jmsreplyto message header field when you send a message , the consumer of the message can use the value of the jmsreplyto field as the destination to which it sends a reply and can also reference the original request by setting the jmscorrelationid header field of the reply message to the value of the jmsmessageid header field of the request .
