Wildfly and auto reconnect to the database
I've got a client, a server and a database. The client communicates with the server via a EJB remote interfaces. As the server - I use a Wildfly 8.2.0. As the database - I use a MySQL. The server communicates with the MySQL via a JPA/Hibernate. When I turn off the MySQL server - the Wildfly throws an exception, of course. But when I turn on the MySQL again - the Wildfly still throws the same ERROR . I've to turn off the Wildfly and turn it back that the Wildfly reconnect to the database. How to set auto reconnect in the Wildfly? I tried to set auto reconnect in a connection URL: jdbc:mysql:/