File tree Expand file tree Collapse file tree
spring-jms/src/main/java/org/springframework/jms/support Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2012 the original author or authors.
2+ * Copyright 2002-2024 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -217,7 +217,7 @@ public static void commitIfNecessary(Session session) throws JMSException {
217217 try {
218218 session .commit ();
219219 }
220- catch (javax .jms .TransactionInProgressException | javax . jms . IllegalStateException ex ) {
220+ catch (javax .jms .TransactionInProgressException ex ) {
221221 // Ignore -> can only happen in case of a JTA transaction.
222222 }
223223 }
@@ -232,7 +232,7 @@ public static void rollbackIfNecessary(Session session) throws JMSException {
232232 try {
233233 session .rollback ();
234234 }
235- catch (javax .jms .TransactionInProgressException | javax . jms . IllegalStateException ex ) {
235+ catch (javax .jms .TransactionInProgressException ex ) {
236236 // Ignore -> can only happen in case of a JTA transaction.
237237 }
238238 }
You can’t perform that action at this time.
0 commit comments