Showing posts with label JMS. Show all posts
Showing posts with label JMS. Show all posts

Tuesday, 31 July 2012

CachingConnectionFactory for Spring JMS

CachingConnectionFactory is used as the proxy wrapping JMS Connection in the Spring JMS. It prevents from agressively closing and reopening JMS sessions and connections.
It is used for adding caching during usage Spring JMS templates.

<bean id="cachingConnectionFactory" class="org.springframework.jms.connection.CachingConnectionFactory">
  <property name="targetConnectionFactory" ref="connectionFactory"/>
</bean>