Title:
Guide to configure JNDI datasource in ColdFusion
|
View in Portal
<p>Here’s a guide to show you how to configure JNDI datasource in ColdFusion 2018. 1. Get the JDBC Driver The JDBC Driver needs to be placed in ColdFusion2018/cfusion/lib folder. 2. context.xml configuration Add a resource block before the closing tag </Context> in the context.xml present at ColdFusion2018/cfusion/runtime/conf , which defines database connection detail : <Resource name=”jdbc/test” auth=”Container” type=”javax.sql.DataSource” maxActive=”50″ maxIdle=”30″ maxWait=”10000″ username=”username” password=”password” driverClassName=”com.mysql.jdbc.Driver” url=”jdbc:mysql://localhost:3306/test”/> For more information on the attributes please refer to https://tomcat.apache.org/tomcat-9.0-doc/jndi-datasource-examples-howto.html. For setting isolation level use the defaultTransactionIsolation attribute. […]</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2019/07/guide-configure-jndi-datasource-coldfusion/">Guide to configure JNDI datasource in ColdFusion</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Labels:
Adobe ColdFusion 10, Adobe ColdFusion 11, Adobe ColdFusion 2016, Adobe ColdFusion 2018, Application Datasource, Data Source, JNDI, Question, Uncategorized, coldfusion 10, coldfusion 11, coldfusion 2016, coldfusion 2018, data source
Comments: