JmsResourceHolder does not ignore IllegalStateException from locally synchronized transaction (SPR-7360)
This commit is contained in:
parent
96b9cf6ca9
commit
d1d5e2d52a
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2008 the original author or authors.
|
* Copyright 2002-2010 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -183,9 +183,7 @@ public class JmsResourceHolder extends ResourceHolderSupport {
|
||||||
catch (TransactionInProgressException ex) {
|
catch (TransactionInProgressException ex) {
|
||||||
// Ignore -> can only happen in case of a JTA transaction.
|
// Ignore -> can only happen in case of a JTA transaction.
|
||||||
}
|
}
|
||||||
catch (javax.jms.IllegalStateException ex) {
|
// Let IllegalStateException through: It might point out an unexpectedly closed session.
|
||||||
// Ignore -> can only happen in case of a JTA transaction.
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue