List of usage examples for org.springframework.jms.connection CachingConnectionFactory setExceptionListener
public void setExceptionListener(@Nullable ExceptionListener exceptionListener)
From source file:com.athena.dolly.common.core.ActiveMQPlaygroundConfiguration.java
private ConnectionFactory connectionFactory() { final CachingConnectionFactory cachingConnectionFactory = new CachingConnectionFactory( amqConnectionFactory());// ww w. ja v a2 s . c o m cachingConnectionFactory.setExceptionListener(jmsExceptionListener()); cachingConnectionFactory.setSessionCacheSize(sessionCacheSize); return cachingConnectionFactory; }