Techminded

Reconnect to DB for Java apps

In case you have service running it may turn into disconnected from database state e.g. with timeout and start generating exceptions when access is needed. To avoid this add this parameters to database connection url:

jdbc:mysql://localhost/database?.....&autoReconnect=true&interactiveClient=true

 

Comments