Example usage for javax.jms XAConnection setExceptionListener

List of usage examples for javax.jms XAConnection setExceptionListener

Introduction

In this page you can find the example usage for javax.jms XAConnection setExceptionListener.

Prototype


void setExceptionListener(ExceptionListener listener) throws JMSException;

Source Link

Document

Sets an exception listener for this connection.

Usage

From source file:org.wso2.carbon.transport.jms.factory.JMSClientConnectionFactory.java

@Override
public XAConnection createXAConnection() throws JMSException {
    XAConnection xaConnection = super.createXAConnection();
    xaConnection.setExceptionListener(new JMSErrorListener());
    return xaConnection;
}