Class TransactionalJMSListenerSuccessHandler

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

public class TransactionalJMSListenerSuccessHandler extends Object implements JMSListenerSuccessHandler
Commits a JMS transaction upon successful handling of a message.
Since:
3.0.0
Author:
Elliott Pope
  • Field Details

  • Constructor Details

    • TransactionalJMSListenerSuccessHandler

      public TransactionalJMSListenerSuccessHandler()
  • Method Details

    • handle

      public void handle(jakarta.jms.Session session, jakarta.jms.Message message) throws jakarta.jms.JMSException
      Description copied from interface: JMSListenerSuccessHandler
      Handle the successfully processed message.
      Specified by:
      handle in interface JMSListenerSuccessHandler
      Parameters:
      session - - the Session the JMSListener is bound to.
      message - - the Message that was processed.
      Throws:
      jakarta.jms.JMSException - if any exception occurs while handling the message.
    • getOrder

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