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(javax.jms.Session session, javax.jms.Message message) throws javax.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:
      javax.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