I have a brand-new
WildFly 8.2.0 and local MySQL setup.
The
JDBC DataSource is WildFly-managed using the "mysql-connector-java-5.1.34-bin.jar_com.mysql.jdbc.Driver_5_1" JDBC driver. In terms of the WildFly DataSource settings - everything is at default and I haven't touched anything other setting up the initial connection.
What is annoying right now is that the JDBC connection would connect promptly to my local MySQL DB - but after a few hours - it would abruptly disconnect. And then I have to end up enabling and disabling the DataSource in WildFly for the connection to be re-established?
Why is it doing this - and why can't it just stay connected to my MySQL DB forever?
Here are my WildFly DataSource settings:
Is there something I am not configuring right?