code: void reset() {
          sessionLock.writeLock().lock();
          try {
              LOGGER.debug("Resetting managed JMS session {}", this);
              session = null;
              for (ManagedMessageConsumer managedMessageConsumer : messageConsumers) {
                  managedMessageConsumer.reset();
              }
          } finally {
              sessionLock.writeLock().unlock();
          }
      }
docs: Reset the session and the message consumers in cascade.