boolean checkMessageForConsumer(GSMessageImpl message) throws JMSException {
  if (!isValid(message)) {
    long ttl=message.getJMSExpiration();
    Time expTime=new Time(ttl);
    if (_logger.isLoggable(Level.FINE)) {
      _logger.fine(toString2() + "Not delivering JMS message < " + message.JMSMessageID+ " > due to expiration: "+ expTime);
    }
    return false;
  }
  if (m_noLocal) {
    String prodConnection=message.getStringProperty(GSMessageImpl.JMS_GSCONNECTION_KEY_NAME);
    boolean pass=!connectionKey.equals(prodConnection);
    if (!pass && _logger.isLoggable(Level.FINE)) {
      _logger.fine(toString2() + "Not delivering JMS message < " + message.JMSMessageID+ " > due to noLocal attribute.");
    }
    return pass;
  }
  return true;
}

boolean checkMessageForConsumer ( GSMessageImpl message ) throws JMSException { if ( ! isValid ( message ) ) { long ttl = message . getJMSExpiration ( ) ; Time expTime = new Time ( ttl ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . fine ( toString2 ( ) + "Not delivering JMS message < " + message . JMSMessageID + " > due to expiration: " + expTime ) ; } return false ; } if ( m_noLocal ) { String prodConnection = message . getStringProperty ( GSMessageImpl . JMS_GSCONNECTION_KEY_NAME ) ; boolean pass = ! connectionKey . equals ( prodConnection ) ; if ( ! pass && _logger . isLoggable ( Level . FINE ) ) { _logger . fine ( toString2 ( ) + "Not delivering JMS message < " + message . JMSMessageID + " > due to noLocal attribute." ) ; } return pass ; } return true ; }
checks whether the message can be passed to the lsitener .
