This content has been marked as final.
Show 1 reply
-
1. Re: Internal server error on Wildfly 8.2.0
jaysensharma Dec 26, 2015 12:35 PM (in response to jojoka)Hello Joe,
If your hibernate/persistence is using WildFly DataSource then in that datasource you can add the following validation entry which will enable the background validation of the Pooled DataSource connections.
<validation> <check-valid-connection-sql>select 1</check-valid-connection-sql> <validate-on-match>false</validate-on-match> <background-validation>true</background-validation> <background-validation-millis>10000</background-validation-millis> </validation>
If your application is purely using the hibernate, then you may try setting the hibernate auto reconnect property in your hibernate configuration file as following:
<hibernate-configuration> <session-factory> <property name="connection.autoReconnect"> true</property> . . </session-factory> </hibernate-configuration>
Regards
Jay SenSharma