connection and destination --> <bean id="producerTemplate" class="org.springframework.jms.core.JmsTemplate" p:connectionFactory-ref="cachedConnectionFactory" p:defaultDestination-ref="destination" /> ... From the API docs for org.springframework.jms.connection.CachingConnectionFactory , This is a SingleConnectionFactory subclass that adds Session caching as well MessageProducer caching. This ConnectionFactory also switches the “reconnectOnException” property to “true” by default, allowing for automatic recovery of the underlying Connection. By