activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahlborn <>
Subject close listener session without rolling back active message
Date Thu, 19 Jul 2018 19:02:16 GMT
So, one thing we recently realized about activemq is that if you have a
message listener actively processing a message, and you close that session
(e.g. the jvm is shutting down), the transaction for the message will end up
rolling back (although the listener will continue happily until completion). 
Once we noticed this behavior, we found that this is clearly documented in .  That
said, i'm wondering why this is the chosen behavior as well as if there is a
way i could handle this differently.  Basically, i want the listener to
finish handling the current message and then shutdown the jvm (not handle
any more messages at this time).  I don't see any way to do this cleanly. 
am i missing something?  Also, in the current situation, since the current
transaction is going to be rolled back, why isn't the listener interrupted
instead of allowed to continue on doing work which ultimately is useless?  

Sent from:

View raw message