Our web application is running on postgres 9.3 and Grails 2.5.3. When we restart postgres (/etc/init.d/postgresql restart) and access the website the exception "This connection has been closed." until we restart the grails app.
However, we would like the grails app to automatically reestablish a connection with the db, after we have restarted postgres. So we would like the app to automatically reconnect to the db by itself, without us having to restart the grails app.
Is that possible and if so how?