<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
			<channel>
            <atom:link href="http://blog.classsoftware.com/rss.cfm?mode=full" rel="self" type="application/rss+xml" />
			<title>Class Software - Singleton</title>
			<link>http://blog.classsoftware.com/index.cfm</link>
			<description>Web technologies and applications focusing on ColdFusion, Flex and Flash.</description>
			<image>
    			<title>Class Software</title>
    			<url>http://www.classsoftware.com/images/logosm.gif</url>
    			<link>http://blog.classsoftware.com/index.cfm</link>
			</image>			
			<language>en-us</language>
			<pubDate>Thu, 09 Sep 2010 05:34:39 +1000</pubDate>
			<lastBuildDate>Sun, 06 May 2007 12:50:00 +1000</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>justin@classsoftware.com (Justin Mclean)</managingEditor>
			<webMaster>justin@classsoftware.com (Justin Mclean)</webMaster>
				
			
			
			
			
			<item>
				<title>ColdFusion Database Pool Master/Slave(s)</title>
				<link>http://blog.classsoftware.com/index.cfm/2007/5/6/ColdFusion-Database-Pool-MasterSlaves</link>
				<description>
				
				Last week when I looked at databases pools I got a few suggestions re master/slaves databases. In this configuration you set up a single database (called the master) and have it replicate to one or more other databases (called the slaves).
				 [More]
				</description>
						
				
				<category>Scalability</category>				
				
				<category>Singleton</category>				
				
				<category>Database</category>				
				
				<category>Custom Tag</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Sun, 06 May 2007 12:50:00 +1000</pubDate>
				<guid>http://blog.classsoftware.com/index.cfm/2007/5/6/ColdFusion-Database-Pool-MasterSlaves</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>ColdFusion Database Pools and Resource Counting</title>
				<link>http://blog.classsoftware.com/index.cfm/2007/4/30/ColdFusion-Database-Pools-and-Resource-Counting</link>
				<description>
				
				With a discussion with &lt;a href=&quot;http://www.codeodor.com/&quot;&gt;Sammy&lt;/a&gt; he suggested that my ColdFusion database pool DSN component could be extended to select the current datasource with the least no of connections rather than just randomly picking one.

Here&apos;s the modified code.
				 [More]
				</description>
						
				
				<category>ColdFusion</category>				
				
				<category>Singleton</category>				
				
				<category>Database</category>				
				
				<category>Custom Tag</category>				
				
				<pubDate>Mon, 30 Apr 2007 00:12:00 +1000</pubDate>
				<guid>http://blog.classsoftware.com/index.cfm/2007/4/30/ColdFusion-Database-Pools-and-Resource-Counting</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>ColdFusion Internationalisation</title>
				<link>http://blog.classsoftware.com/index.cfm/2007/4/29/ColdFusion-Internationalisation</link>
				<description>
				
				Using ColdFusion it&apos;s fairly straight forward to make web pages appear in more than one language.

First off you need to detect what language you want the page to be in, next you load the strings you want to display from a resource file and lastly display the page in the required language.
				 [More]
				</description>
						
				
				<category>ColdFusion</category>				
				
				<category>Internationalization</category>				
				
				<category>XML</category>				
				
				<category>Singleton</category>				
				
				<category>I18N</category>				
				
				<pubDate>Sun, 29 Apr 2007 12:00:00 +1000</pubDate>
				<guid>http://blog.classsoftware.com/index.cfm/2007/4/29/ColdFusion-Internationalisation</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>ColdFusion RAID databases (or database pools)</title>
				<link>http://blog.classsoftware.com/index.cfm/2007/4/28/RAID-databases</link>
				<description>
				
				You&apos;ve tuned your databases queries, added all of the indexes you can think of and cached all of the queries you can but your database still isn&apos;t giving you the performance you need.

So it&apos;s time to split up your database into several databases and move each of these new databases off onto separate database servers. Or perhaps a RAID database is the solution to your performance issues.
				 [More]
				</description>
						
				
				<category>Scalability</category>				
				
				<category>Database</category>				
				
				<category>Singleton</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Sat, 28 Apr 2007 16:30:00 +1000</pubDate>
				<guid>http://blog.classsoftware.com/index.cfm/2007/4/28/RAID-databases</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>ColdFusion Singletons Revisited</title>
				<link>http://blog.classsoftware.com/index.cfm/2007/4/10/ColdFusion-Singletons-Revisited</link>
				<description>
				
				My last &lt;a href=&quot;http://blog.classsoftware.com/index.cfm/2007/4/9/ColdFusion-Singletons&quot;&gt;article&lt;/a&gt; on singletons got a few comments on blogs and in email including how it could be improved (thanks Michael) and a few questions. I also omitted the code showing how the singletons were created and called (now added).

So here&apos;s the new improved code!
				 [More]
				</description>
						
				
				<category>ColdFusion</category>				
				
				<category>Dynamic Methods</category>				
				
				<category>Design Patterns</category>				
				
				<category>Singleton</category>				
				
				<pubDate>Tue, 10 Apr 2007 18:32:00 +1000</pubDate>
				<guid>http://blog.classsoftware.com/index.cfm/2007/4/10/ColdFusion-Singletons-Revisited</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>ColdFusion Singletons</title>
				<link>http://blog.classsoftware.com/index.cfm/2007/4/9/ColdFusion-Singletons</link>
				<description>
				
				Singletons are perhaps one of the most simple Design Patterns. For those who don&apos;t know sigletons are a class that can only have one instance. They can be thought of as a glorified global variable - but are a lot more useful.

Most ColdFusion classes, or rather instances of CF components, can be turned in a singleton by placing the following code in your Application.cfm:
&lt;code&gt;
	&lt;cfif not structkeyexists(application,&lt;instance name&gt;)&gt;
		&lt;cfset application.&lt;instance name&gt; = createobject(&quot;component&quot;,&lt;path to component&gt;)&gt;
	&lt;/cfif&gt;
&lt;/code&gt;

or OnApplicationStart method of your Application.cfc:
&lt;code&gt;
	&lt;cfset application.&lt;instance name&gt; = createobject(&quot;component&quot;,&lt;path to component&gt;)&gt;
&lt;/code&gt;
				 [More]
				</description>
						
				
				<category>ColdFusion</category>				
				
				<category>Design Patterns</category>				
				
				<category>Singleton</category>				
				
				<pubDate>Mon, 09 Apr 2007 23:30:00 +1000</pubDate>
				<guid>http://blog.classsoftware.com/index.cfm/2007/4/9/ColdFusion-Singletons</guid>
				
			</item>
			
		 	
			</channel></rss>