Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
5.13.0, 5.13.1, 5.13.2, 5.13.3
-
None
Description
The reconnect on exception configuration setting in the JMS pool relies on an exception being thrown from the ExceptionListener to signal a reconnect needed. This can miss an exception thrown from the start method when the initial connection attempt is being made and things like security exceptions trigger connection failure. Even if the exception is given to the listener it happens asynchronously which means the pool will be handling out known broken connection instances until the listener gets around to running the close logic.
For the start method we should also be handling the exception in ConnectionPool and checking for the reconnect on exception flag to indicate a failure has occurred and the Connection should be closed and evicted from the pool.
Attachments
Issue Links
- relates to
-
AMQ-5534 Generic JMS connection pool should be able to renew connections after JMSException
- Resolved