The following changes should be made in the standalone.xml file.
Current Values:
<validation>
<validate-on-match>false</validate-on-match>
<background-validation>false</background-validation>
</validation>
New Value:
<validation>
<valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mssql.MSSQLValidConnectionChecker"></valid-connection-checker>
<check-valid-connection-sql>select 1</check-valid-connection-sql>
<validate-on-match>false</validate-on-match>
<background-validation>false</background-validation>
</validation>