Class TransactionalJMSListenerErrorHandler

java.lang.Object
io.micronaut.jms.listener.TransactionalJMSListenerErrorHandler
All Implemented Interfaces:
io.micronaut.core.order.Ordered, JMSListenerErrorHandler

public class TransactionalJMSListenerErrorHandler extends Object implements JMSListenerErrorHandler
Attempts to rollback a transaction on the given Session. If it fails then the exception is logged.
Since:
3.0.0
Author:
Elliott Pope
  • Constructor Details

    • TransactionalJMSListenerErrorHandler

      public TransactionalJMSListenerErrorHandler()
  • Method Details

    • handle

      public void handle(jakarta.jms.Session session, jakarta.jms.Message message, Throwable ex)
      Description copied from interface: JMSListenerErrorHandler
      Handles the exception thrown during message processing.
      Specified by:
      handle in interface JMSListenerErrorHandler
      Parameters:
      session - - the Session the JMSListener is bound to.
      message - - the Message that was processed.
      ex - - the exception that was thrown.
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface io.micronaut.core.order.Ordered