spring-framework / org.springframework.jms.connection / CachingConnectionFactory / setCacheProducers

setCacheProducers

open fun setCacheProducers(cacheProducers: Boolean): Unit

Specify whether to cache JMS MessageProducers per JMS Session instance (more specifically: one MessageProducer per Destination and Session).

Default is "true". Switch this to "false" in order to always recreate MessageProducers on demand.