public Message receive() throws JMSException {
  return receive(Message.DEFAULT_TIME_TO_LIVE);
}

public Message receive ( ) throws JMSException { return receive ( Message . DEFAULT_TIME_TO_LIVE ) ; }
api method . using default readtimeout which is long . max_value . this call blocks until a message arrives , the timeout expires , or this message consumer is m_closed .
