spring-framework/spring-jms
Radek Kraus 4cc02fe3bc
Protect JMS connection creation against prepareConnection errors
This commit uses a local variable for the creation of a new JMS
Connection so that a rare failure in prepareConnection(...) does not
leave the connection field in a partially initialized state.

If such a JMSException occurs, the intermediary connection is closed.
This commit further defends against close() failures at that point,
by logging the close exception at DEBUG level. As a result, the original
JMSException is always re-thrown.

Closes gh-29116
See gh-29115
2023-02-28 16:10:05 +01:00
..
src Protect JMS connection creation against prepareConnection errors 2023-02-28 16:10:05 +01:00
spring-jms.gradle Jakarta EE 9 migration 2021-09-17 09:14:07 +02:00