The java doc here related to Spring CachingConnectionFactory has comment :
NOTE: This ConnectionFactory requires explicit closing of all Sessions obta
Application is not required to close the Session when using DefaultMessageListenerContainer, it creates the required sessions and closes them during shutdown.
Per my understanding the note you mentioned applies when Session is created by application using CachingConnectionFactory reference about which spring will have no clue.