code: public List<Message> receiveBatch(int batchSize) throws JmsException {
  
          Destination defaultDestination = getDefaultDestination();
  
          if (defaultDestination != null) {
              return receiveBatch(defaultDestination, batchSize);
          } else {
              return receiveBatch(getRequiredDefaultDestinationName(), batchSize);
          }
      }
docs: Receive a batch of up to batchSize. Other than batching this method is the same as {@link JmsTemplate#receive()}
  @return A list of {@link Message}
  @param batchSize The batch size
  @throws JmsException The {@link JmsException}