Example usage for org.springframework.jms.connection CachingConnectionFactory setExceptionListener

List of usage examples for org.springframework.jms.connection CachingConnectionFactory setExceptionListener

Introduction

In this page you can find the example usage for org.springframework.jms.connection CachingConnectionFactory setExceptionListener.

Prototype

public void setExceptionListener(@Nullable ExceptionListener exceptionListener) 

Source Link

Document

Specify an JMS ExceptionListener implementation that should be registered with the single Connection created by this factory.

Usage

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;
}