Tag Archives: JMS Pooling

Using CachingConnectionFactory with Spring JmsTemplate: What problem does it solve?


From Spring framework API docs for org.springframework.jms.core.JmsTemplate, “…The ConnectionFactory used with this template should return pooled Connections (or a single shared Connection) as well as pooled Sessions and MessageProducers. Otherwise, performance of ad-hoc JMS operations is going to suffer. The simplest option is to use the Spring-provided SingleConnectionFactory as a decorator for your target ConnectionFactory, […]