JmsUtils.commitIfNecessary catches and ignores JMS IllegalStateException, losing message with ActiveMQ Artemis #32473
Labels
in: messaging
Issues in messaging modules (jms, messaging)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
JmsUtils.commitIfNecessary catch and ignore jakarta.jms.IllegalStateException saying it can only happens in case of JTA transaction:
but there are cases where it can be raised also in local transaction, for example if a broker restart happens between send and commit:
I created a couple of tests that reproduce the issue simulating the broker restart between send and commit:
https://github.com/luigidemasi/spring-jms-commit-issue
The text was updated successfully, but these errors were encountered: