<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.hostek.com/index.php?action=history&amp;feed=atom&amp;title=Application-Specific_Datasources</id>
		<title>Application-Specific Datasources - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.hostek.com/index.php?action=history&amp;feed=atom&amp;title=Application-Specific_Datasources"/>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Application-Specific_Datasources&amp;action=history"/>
		<updated>2026-05-25T07:24:53Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=Application-Specific_Datasources&amp;diff=2264&amp;oldid=prev</id>
		<title>Jakeh: added table of contents..~~~~</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Application-Specific_Datasources&amp;diff=2264&amp;oldid=prev"/>
				<updated>2014-08-29T22:47:19Z</updated>
		
		<summary type="html">&lt;p&gt;added table of contents..~~~~&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:47, 29 August 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;__FORCETOC__&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Railo 4.1 and ColdFusion 11 added the ability to create Application-specific datasources (DSNs) within an Application.cfc file, bypassing the need to register the DSN on the server. The information below shows how you can get started using this new feature in either CFML engine.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Railo 4.1 and ColdFusion 11 added the ability to create Application-specific datasources (DSNs) within an Application.cfc file, bypassing the need to register the DSN on the server. The information below shows how you can get started using this new feature in either CFML engine.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jakeh</name></author>	</entry>

	<entry>
		<id>https://wiki.hostek.com/index.php?title=Application-Specific_Datasources&amp;diff=2259&amp;oldid=prev</id>
		<title>Jakeh: adding information about application.cfc dsn connection strings..~~~~</title>
		<link rel="alternate" type="text/html" href="https://wiki.hostek.com/index.php?title=Application-Specific_Datasources&amp;diff=2259&amp;oldid=prev"/>
				<updated>2014-08-27T22:01:08Z</updated>
		
		<summary type="html">&lt;p&gt;adding information about application.cfc dsn connection strings..~~~~&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Railo 4.1 and ColdFusion 11 added the ability to create Application-specific datasources (DSNs) within an Application.cfc file, bypassing the need to register the DSN on the server. The information below shows how you can get started using this new feature in either CFML engine.&lt;br /&gt;
&lt;br /&gt;
==Railo 4.1+ Application-Specific Datasources==&lt;br /&gt;
The easiest way to get started is to have Railo's Web Administrator create the connection string for you. To do this, first create the DSN within your Railo Web Administrator and scroll to the bottom. You'll see the code to insert into your Application.cfc at the bottom of the page.&amp;lt;br&amp;gt;[[File:Rail-dsn-conn-string.png]]&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
After copying the code into your Application.cfc, you can remove the DSN from your Railo Web Administrator, and your site will still be able to use the datasource.&lt;br /&gt;
&lt;br /&gt;
More information and examples of how to use this feature are available here: [http://blog.getrailo.com/post.cfm/railo-4-1-explicit-datasources-in-application-cfc Railo Blog - Railo 4.1: Explicit Datasources in Application.cfc]&lt;br /&gt;
&lt;br /&gt;
==ColdFusion 11+ Application-Specific Datasources==&lt;br /&gt;
In ColdFusion 11 application-specific datasources are defined by manually creating a connection string that includes the driver, host, databse, username, password, and any connection options needed. For example, you could add code like this to your Application.cfc to create a MySQL datasource:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cfm&amp;quot;&amp;gt;&lt;br /&gt;
this.datasources.dsn1={&amp;quot;database&amp;quot;=&amp;quot;regression&amp;quot;,&amp;quot;host&amp;quot;=&amp;quot;mysqlserver.hostek.com&amp;quot;, &amp;quot;driver&amp;quot;=&amp;quot;MySQL5&amp;quot;, &amp;quot;username&amp;quot;=&amp;quot;mysqluser&amp;quot;, &amp;quot;password&amp;quot;=&amp;quot;ChangeTh1s!&amp;quot;};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More info can be found in the '''Enhancements made in ColdFusion 11'' section of this wiki: [https://wikidocs.adobe.com/wiki/display/coldfusionen/Application+variables ColdFusion Application Variables]&lt;br /&gt;
&lt;br /&gt;
The ColdFusion Blog also has some examples for your reference: [http://blogs.coldfusion.com/post.cfm/application-datasources-in-coldfusion Application datasources in ColdFusion]&lt;/div&gt;</summary>
		<author><name>Jakeh</name></author>	</entry>

	</feed>