private GSMessageImpl receiveFromQueue(long timeout) throws ReceiveFromQueueException {
  Transaction txn=m_session.getTransaction();
  if (_logger.isLoggable(Level.FINE)) {
    _logger.log(Level.FINE,"receiveFromQueue(): Receiving from Queue, txn=" + txn);
  }
  try {
    return (GSMessageImpl)m_space.take(m_jmsMessageTemplate,txn,timeout);
  }
 catch (  Exception e) {
    throw new ReceiveFromQueueException(e);
  }
}

private GSMessageImpl receiveFromQueue ( long timeout ) throws ReceiveFromQueueException { Transaction txn = m_session . getTransaction ( ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . log ( Level . FINE , "receiveFromQueue(): Receiving from Queue, txn=" + txn ) ; } try { return ( GSMessageImpl ) m_space . take ( m_jmsMessageTemplate , txn , timeout ) ; } catch ( Exception e ) { throw new ReceiveFromQueueException ( e ) ; } }
retrieves a message from the queue .
