Silently swallow IllegalStateException on commit if the JMS transaction is based on a JDBC transaction
This fine-tuned change restores the original Spring 3.0 behavior for Oracle AQ, and also allows for other ConnectionFactory types to comply with the "getDataSource()" pattern.
Issue: SPR-10829
(cherry picked from commit 11d20e3)
@ -183,7 +186,26 @@ public class JmsResourceHolder extends ResourceHolderSupport {
@@ -183,7 +186,26 @@ public class JmsResourceHolder extends ResourceHolderSupport {
catch(TransactionInProgressExceptionex){
// Ignore -> can only happen in case of a JTA transaction.
}
// Let IllegalStateException through: It might point out an unexpectedly closed session.