Few questions to ask, 1. How to check if the conn...
# exposed
a
Few questions to ask, 1. How to check if the connection is alive? 2. How to reconnect if the connection is closed (randomly)?
t
Just use connection pools (like HikaryCP) and they will handle it for you. If connection closed while transaction is active then exception will be thrown and transaction will retry (if you set retry count > 1).