Disabling Test Connection to a JDBC Resource
- By default, testing connection to a JDBC resource is enabled in ActiveMatrix Administrator. To disable the feature set the Java property
com.tibco.admin.jdbc.disable.validate.connection.oninit to
true in the ActiveMatrix System Node’s TRA file. System Node’s TRA file is located at
CONFIG_HOME\tibcohost\<instance_name>\data_3.2.x\nodes\SystemNode\bin\
directory.
java.property.com.tibco.admin.jdbc.disable.validate.connection.oninit=true
- Alternatively, when creating the resource template, set the attribute
disableValidateConnectionOnInit to
true in the
<CONFIG_HOME>\admin\amxadmin\samples\resourcetemplate_data.xml file.
Sample resourcetemplate_data.xml:
<ResourceTemplate xsi:type="amxdata:JdbcResourceTemplate" name="cliJdbcNonXaNoTx" description="jdbc non xa no tx" maxConnections="8888" disableValidateConnectionOnInit="true"> <Direct xsi:type="amxdata:Direct" dbUrl="jdbc:hsqldb:hsql://localhost:1234/jdbcRtDb" jdbcDriver="org.hsqldb.jdbcDriver" isTransactional="false" loginTimeOut="2"/> <connection-property xsi:type="amxdata:Property" name="Property1" value="propertyValue1"/> <connection-property xsi:type="amxdata:Property" name="Property2" value="propertyValue2"/> <connection-property xsi:type="amxdata:Property" name="Property3" value="propertyValue3"/> <hostTypeProperties xsi:type="amxdata:Properties"> <Property xsi:type="amxdata:Property" name="hostProp1" value="val1"/> <Property xsi:type="amxdata:Property" name="hostProp2" value="val2"/> </hostTypeProperties> <InlineCredentials username="cliJdbc" password="cliTiger"/> </ResourceTemplate>
If the test connection to JDBC resource feature is disabled when creating resource template and if you enable it when creating the resource instance, the feature is not enabled for the resource template, which is already created. The feature is enabled for the resource template and resource instance created after enabling the feature.
Copyright © Cloud Software Group, Inc. All rights reserved.