code: protected boolean checkSupportedMessageTypes(Message msg) {
          if (msg instanceof TextMessage) {
              return true;
          } else {
              try {
                  log.error("Unsupported message type: " + msg.getJMSType());
              } catch (JMSException ignore) {
              }
              sendToInvalidMessageQueue(msg);
              return false;
          }
      }
docs: Only TextMessages are supported by default. Subclass may override, but
  then {@link #getMessageText(Message)} must also be implemented to support
  other message types.