private AbstractMessage fetchNext ( ) throws JMSException { if ( nextMessage != null ) return nextMessage ; // Already fetched nextMessage = localQueue . browse ( cursor , parsedSelector ) ; // Lookup next candidate if ( nextMessage == null ) close ( ) ; // Auto-close enumeration at end of queue return nextMessage ; }
Fetch the next browsable message in the associated queue