<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1129 How to configure JBoss databases to reconnect automatically in Appian</title><link>https://community.appian.com/support/w/kb/351/kb-1129-how-to-configure-jboss-databases-to-reconnect-automatically-in-appian</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1129 How to configure JBoss databases to reconnect automatically in Appian</title><link>https://community.appian.com/support/w/kb/351/kb-1129-how-to-configure-jboss-databases-to-reconnect-automatically-in-appian</link><pubDate>Tue, 25 Jul 2017 11:05:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:52fefcc5-a7d9-4674-90db-8e7fece24de2</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/351/kb-1129-how-to-configure-jboss-databases-to-reconnect-automatically-in-appian#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nick Vigilante on 7/25/2017 11:05:50 AM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;This article outlines how to configure a data source configured in a &lt;strong&gt;*-ds.xml&lt;/strong&gt; file&amp;nbsp;to attempt to reconnect automatically if the connection is lost. This does not apply to data sources configured in the Admin Console.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Edit the &lt;strong&gt;*-ds.xml&lt;/strong&gt; located in &lt;code&gt;&amp;lt;JBOSS_HOME&amp;gt;/standalone/deployments&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Inside the &lt;code&gt;&amp;lt;xa-datasource&amp;gt;&lt;/code&gt; tag in the desired data source, add one of the below elements depending on your RDBMS vendor:&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 id="oracle-mysql"&gt;Oracle/MySQL&lt;/h4&gt;
&lt;pre&gt;&amp;lt;validation&amp;gt;
    &amp;lt;validate-on-match&amp;gt;true&amp;lt;/validate-on-match&amp;gt;
    &amp;lt;background-validation&amp;gt;false&amp;lt;/background-validation&amp;gt;
    &amp;lt;check-valid-connection-sql&amp;gt;SELECT 1 FROM DUAL&amp;lt;/check-valid-connection-sql&amp;gt;
&amp;lt;/validation&amp;gt;
&lt;/pre&gt;
&lt;h4 id="sql-server"&gt;SQL Server&lt;/h4&gt;
&lt;pre&gt;&amp;lt;validation&amp;gt;
    &amp;lt;validate-on-match&amp;gt;true&amp;lt;/validate-on-match&amp;gt;
    &amp;lt;background-validation&amp;gt;false&amp;lt;/background-validation&amp;gt;
    &amp;lt;check-valid-connection-sql&amp;gt;SELECT GETDATE()&amp;lt;/check-valid-connection-sql&amp;gt;
&amp;lt;/validation&amp;gt;
&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian using JBoss as an application server.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: July 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, how-to&lt;/div&gt;
</description></item></channel></rss>