Class ChainedExceptionListener

java.lang.Object
org.springframework.jms.connection.ChainedExceptionListener
All Implemented Interfaces:
jakarta.jms.ExceptionListener

public class ChainedExceptionListener extends Object implements jakarta.jms.ExceptionListener
Implementation of the JMS ExceptionListener interface that supports chaining, allowing the addition of multiple ExceptionListener instances in order.
Since:
2.0
Author:
Juergen Hoeller
  • Constructor Details

    • ChainedExceptionListener

      public ChainedExceptionListener()
  • Method Details

    • addDelegate

      public final void addDelegate(jakarta.jms.ExceptionListener listener)
      Add an ExceptionListener to the chained delegate list.
    • getDelegates

      public final jakarta.jms.ExceptionListener[] getDelegates()
      Return all registered ExceptionListener delegates (as array).
    • onException

      public void onException(jakarta.jms.JMSException ex)
      Specified by:
      onException in interface jakarta.jms.ExceptionListener