Skip to content

Instantly share code, notes, and snippets.

@bdarfler
Created May 23, 2018 16:53
Show Gist options
  • Save bdarfler/09fe64a6cd87ee24260bdb53f8d98100 to your computer and use it in GitHub Desktop.
Save bdarfler/09fe64a6cd87ee24260bdb53f8d98100 to your computer and use it in GitHub Desktop.
<amq:connectionFactory id="connectionFactory" brokerURL="${jms.url}"/>
<bean id="singleConnectionFactory" p:targetConnectionFactory-ref="connectionFactory" p:reconnectOnException="true"/>
<bean id="cachingConnectionFactory" p:targetConnectionFactory-ref="singleConnectionFactory" p:sessionCacheSize="100"/>
<bean id="jmsTemplate" p:connectionFactory-ref="cachingConnectionFactory"/>
<jms:listener-container connection-factory="singleConnectionFactory">
<jms:listener id="QueueHandler" destination="Queue" ref="queueHandler"/>
</jms:listener-container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment