Package io.micronaut.jms.listener
Class TransactionalJMSListenerErrorHandler
java.lang.Object
io.micronaut.jms.listener.TransactionalJMSListenerErrorHandler
- All Implemented Interfaces:
io.micronaut.core.order.Ordered
,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
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TransactionalJMSListenerErrorHandler
public TransactionalJMSListenerErrorHandler()
-
-
Method Details
-
handle
Description copied from interface:JMSListenerErrorHandler
Handles the exception thrown during message processing.- Specified by:
handle
in interfaceJMSListenerErrorHandler
- Parameters:
session
- - theSession
theJMSListener
is bound to.message
- - theMessage
that was processed.ex
- - the exception that was thrown.
-
getOrder
public int getOrder()- Specified by:
getOrder
in interfaceio.micronaut.core.order.Ordered
-