<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>Strikefish Blog - ColdFusion</title>
			<link>http://blog.strikefish.com/blog/index.cfm</link>
			<description></description>
			<language>en-us</language>
			<pubDate>Tue, 21 May 2013 11:26:14 -0400</pubDate>
			<lastBuildDate>Wed, 12 Aug 2009 15:38:00 -0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>jeffrey.bouley@strikefish.com</managingEditor>
			<webMaster>jeffrey.bouley@strikefish.com</webMaster>
			
			<item>
				<title>Flash Camp Atlanta</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2009/8/12/Flash-Camp-Atlanta</link>
				<description>
				
				If you are looking for a great day of Flex and Adobe discussion/training sign up for Flash Camp Atlanta!  

It&apos;s on Aug. 28th and starts at 8 for the special introduction course with general sessions starting at 9.  You can&apos;t beat the training you will receive from these experts in Flash and RIA; plus it only costs 50 bucks!

I am planning to attend, hope to see you there; click on the image to register:

&lt;a href=&quot;http://www.flashcampatlanta.com/&quot; mce_href=&quot;http://www.flashcampatlanta.com/&quot; target=&quot;_blank&quot;&gt;
&lt;img src=&quot;http://s3.davidtucker.net/flash_camp_atlanta-200.png&quot; mce_src=&quot;http://s3.davidtucker.net/flash_camp_atlanta-200.png&quot; width=&quot;200&quot; border=&quot;0&quot; /&gt;
&lt;/a&gt; 
				</description>
				
				<category>Adobe</category>				
				
				<category>Flash</category>				
				
				<category>ActionScript</category>				
				
				<category>Flex</category>				
				
				<category>IT in General</category>				
				
				<category>Java</category>				
				
				<category>Universal Mind</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Wed, 12 Aug 2009 15:38:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2009/8/12/Flash-Camp-Atlanta</guid>
				
			</item>
			
			<item>
				<title>jvm.config Tuning Tip For All Server Side Java Solutions</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2009/7/15/jvmconfig-Tuning-Tip-For-All-Server-Side-Java-Solutions</link>
				<description>
				
				I have been wanting to blog about an experience I had not too long ago on a project where the jvm was consistently throwing OOM errors.  It had me banging my head against my desk for a few days attempting to trace where the culprit was.

Was it code related?... yes, was it bad code?... sort of, was it very very very intense code (looping over many sql calls and instantiating many objects)?... YES!  The challenge here was to apply a quick band aid rather than redesign this rules engine that had the characteristics listed due to time constraints.  It is important to note I was not responsible for the poorly written code 8-).  

I had to first identify if there were memory leaks due to this code.  To do this I utilized &lt;a href=&quot;http://http://www.yourkit.com/&quot;&gt;YourKit Java Profiler&lt;/a&gt;.  They have .NET and Java profilers that allow you to monitor their respective runtimes.  YourKit Profiler is very simple to configure within the jvm.config file (I&apos;m not going to get into that in this blog).  My point here is that I witnessed memory steadily climb and at times spike, but was only able to reclaim memory when executing a manual GC.  UGGG!!!  So, no memory leak, but the runtime was hanging on to what it had...  Why was the GC not reclaiming memory quickly on it&apos;s own?  I had all the BP jvm args of old, etc., etc. ParNewGC and RMI to no avail.

And to get back to the initial issue; the blasted OOM error.  I searched high and low and identified a thread on a Sun forum that there were issues with jre 1.5 that ultimately threw a OOM error if the runtime was unable to reclaim memory during a GC within a given time frame.  The workaround for this was to set a time constraint in the JVM (which didn&apos;t work) or install 1.6_10 or later.  This was my first step.  I installed this JRE version and pointed my jvm.config to it.  The application ran fine under this JRE except that I was still seeing the memory creep to the ceiling with no reclaim.  

I then read on one of Sun&apos;s GC tuning white papers the following paragraph:

The -XX:+AggressiveHeap option inspects the machine resources (size of memory and number of processors) and attempts to set various parameters to be optimal for long-running, memory allocation-intensive jobs. It was originally intended for machines with large amounts of memory and a large number of CPUs, but in the J2SE platform, version 1.4.1 and later it has shown itself to be useful even on four processor machines. With this option the throughput collector (-XX:+UseParallelGC) is used along with adaptive sizing (-XX:+UseAdaptiveSizePolicy). The physical memory on the machines must be at least 256MB before AggressiveHeap can be used. The size of the initial heap is calculated based on the size of the physical memory and attempts to make maximal use of the physical memory for the heap (i.e., the algorithms attempt to use heaps nearly as large as the total physical memory).

Note: -XX:+UseAdaptiveSizePolicy is on by default so I don&apos;t explicitly define it in my args.

Amazingly, once I added this to the args, removed ParNewGC (enabled UseParallelGC) the server ran flawlessly for days and days without a restart.  I was serving requests into the millions without a restart!!!  A partial arg list specific to these setting are below, please let me know your thoughts and concerns as I always enjoy constructive feedback.

java.args=-server -Xmx1024m -Xms1024m -XX:+AggressiveHeap -XX:+UseParallelGC -Dsun.io.useCanonCaches=false -XX:MaxPermSize=512m

Note: This was for a ColdFusion 8 instance. 
				</description>
				
				<category>Adobe</category>				
				
				<category>.NET</category>				
				
				<category>Site Performance</category>				
				
				<category>IT in General</category>				
				
				<category>Java</category>				
				
				<category>Universal Mind</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Wed, 15 Jul 2009 07:56:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2009/7/15/jvmconfig-Tuning-Tip-For-All-Server-Side-Java-Solutions</guid>
				
			</item>
			
			<item>
				<title>Writing for ColdFusion 9</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2009/5/11/Writing-for-ColdFusion-9</link>
				<description>
				
				I just got word that I will be contributing to the books supporting the ColdFusion 9 release.  

Adobe is making significant improvements as they continue to evolve the product.  

I am stoked to be involved for a third release and look forward to working with a stellar team of authors. 
				</description>
				
				<category>Adobe</category>				
				
				<category>IT in General</category>				
				
				<category>Universal Mind</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Mon, 11 May 2009 21:38:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2009/5/11/Writing-for-ColdFusion-9</guid>
				
			</item>
			
			<item>
				<title>Flex Camp Miami</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2009/2/3/Flex-Camp-Miami</link>
				<description>
				
				I wanted to blog a reminder that I am promoting Flex Camp Miami (http://www.flexcampmiami.com).  It will be on the University of Miami campus.  A great place to meet during the winter season and registration is only $30!!!!

The testimonials alone are reason to attend:  http://www.flexcampmiami.com/page.cfm/testimonials.

It&apos;s an opportunity to learn from the industry&apos;s finest, network, discuss the daily grind, etc.  I look forward to seeing you there!


Here is the Agenda:

&lt;table style=&quot;border: 1px solid #617598;&quot; border=&quot;1&quot; width=&quot;100%&quot;&gt;

&lt;tbody&gt;
&lt;tr bgcolor=&quot;#cccccc&quot;&gt;
&lt;td style=&quot;color: #000000;&quot;&gt;&lt;strong&gt;Time&lt;/strong&gt;&lt;/td&gt;
&lt;td style=&quot;color: #000000;&quot;&gt;&lt;strong&gt;Session and Speaker&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;8:00-8:30 am&lt;/td&gt;
&lt;td&gt;Registration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;8:30-9:30 am&lt;/td&gt;
&lt;td&gt;Welcome and Keynote (Flex 4 Preview)&lt;br /&gt;&lt;em&gt;Brian Rinaldi, Universal Mind&lt;br /&gt;Greg Wilson, Adobe&lt;br /&gt;&lt;/em&gt;

&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;&lt;em&gt;9:30-10:20 am&lt;/em&gt;&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;/page.cfm/agenda/david-tucker-working-with-data-in-air&quot;&gt;Working With Data in AIR&lt;/a&gt;&lt;br /&gt;&lt;em&gt;David Tucker, Universal Mind&lt;br /&gt;&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10:20-10:40 am &lt;/td&gt;
&lt;td&gt;Break&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;10:40-11:30 am&lt;/td&gt;

&lt;td&gt;&lt;a href=&quot;/page.cfm/agenda/in-search-of-aop-for-as3&quot;&gt;In Search of AOP for AS3&lt;/a&gt;&lt;br /&gt;&lt;em&gt;Maxim Porges, Highwinds&lt;br /&gt;&lt;/em&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;11:30-12:20 pm&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;/page.cfm/agenda/andrew-powell-merapi-or-how-to-blow-your-mind&quot;&gt;Merapi or How to Blow Your Mind with AIR&lt;/a&gt;&lt;br /&gt;&lt;em&gt;Andrew Powell, Universal Mind&lt;br /&gt;&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;12:20-1:00 pm&lt;/td&gt;
&lt;td&gt;Lunch (provided)&lt;br /&gt;&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;1:00-1:50 pm&lt;/td&gt;
&lt;td&gt;User Experience Design Topic TBA&lt;br /&gt;&lt;em&gt;TBA&lt;br /&gt;&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;1:50-2:40 pm&lt;/td&gt;
&lt;td&gt;&lt;a href=&quot;/page.cfm/agenda/brian-legros-continuous-integration-and-flex&quot;&gt;Continuous Integration and Flex&lt;/a&gt;&lt;br /&gt;&lt;em&gt;Brian LeGros, Highwinds&lt;br /&gt;&lt;/em&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2:40-3:00 pm&lt;/td&gt;

&lt;td&gt;Break&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;3:00-3:50 pm&lt;/td&gt;
&lt;td&gt;&lt;em&gt;ScrapBlog.com Speaker&lt;/em&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;3:50-4:40 pm&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;
Mate Framework&lt;br /&gt;&lt;em&gt;Laura Arguello, ASFusion&lt;/em&gt;
&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign=&quot;top&quot;&gt;4:40-5:00 pm&lt;/td&gt;
&lt;td&gt;Closing and Door Prizes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;


So as you can see, something for everyone.  Look forward to seeing you there. 
				</description>
				
				<category>Adobe</category>				
				
				<category>Flash</category>				
				
				<category>ActionScript</category>				
				
				<category>Flex</category>				
				
				<category>IT in General</category>				
				
				<category>U of M</category>				
				
				<category>Universal Mind</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Tue, 03 Feb 2009 09:59:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2009/2/3/Flex-Camp-Miami</guid>
				
			</item>
			
			<item>
				<title>ColdFusion createObject &quot;Component&quot; and Pathing Performance</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2008/12/12/ColdFusion-createObject-Component-and-Pathing-Performance</link>
				<description>
				
				I haven&apos;t blogged in awhile due to schedule, but had to blog this experience I recently had while attempting to stabilize an application and enhance performance. 

I have always taken for granted that createObject was lightning fast... Well, as fast as feasibly possibly under a given JVM.

I think I was dead wrong and this may be an issue for Adobe to address.  I am unclear on the internals of course.  But I have been up against OOMs on my current project and wanted to test out using soft reference (cached objects) and use duplicate from the cache rather than createObject.

Far stretch I know... but hey it was worth a try.  What was revealed was that performance was negligible and createObject was faster in some intervals.  Memory behaved the same, no real bonus.  So in discussion with a fellow consultant I told him I&apos;d ship a zip to him for test purposes as he had said he&apos;d seen a significant performance enhancement with duplicate (not true by the way).

What happened next totally shocked me.  To simplify the test code I snagged my VO.cfc out of it&apos;s proper place (several dirs down i.e. sitedir, com, bus, app, model, vo.. you get the idea) and put it in the root of the calling cfm.  I then removed all the pathing (dot notation) from my createObject call and executed the cfm to see if it would run ok after the change.  

The test was a loop of 10k over this create object call.  I was seeing execution times of around 30 seconds.  When I ran the updated code it went to 577 milliseconds...  I am still befuddled by this.  Is there that much overhead with pathing?  

I initially thought it was a mapping issue because I had been using mappings, but absolute path from root was just as slow.  

Please Adobe tell me this is Sun&apos;s jvm and not your code.  I know this is negligible with 100 or so creates, but imagine the boost if I did find something here. 

For clarification I am running on a Mac (OS X, CF running in JBOSS), but also tested on my old Dell (XP, CF running in JRUN).  I didn&apos;t see as dramatic a difference on WIntel, but my exec time went from 30 seconds to 4 seconds.  I am happy with 10x faster on Windows too...  

Any insight here is greatly appreciated.
Example Code:   
&lt;code&gt;
&lt;cfscript&gt;
  		currentTime = now();
  	  rqaArray = arrayNew(1);
  	  initTime = getTickCount();
			for (index=1; index lte 10000; index = index + 1)
      {
	      // pathing example replace vo reference with
	      //this pathing call com.mercer.mercerOnline.model.RQASummaryVO

	      rqa = createObject(&quot;component&quot;,&quot;RQASummaryVO&quot;);
	      rqa.rqaID                 = index;
				rqa.type                  = &quot;theType&quot;;
				rqa.createDate            = currentTime;
				rqa.submitDate            = currentTime;
				rqa.client                = &quot;currentClient&quot;;
				rqa.clientID              = &quot;clientID&quot;;
				rqa.status                = 6;
				rqa.userID                = 123456;
				rqa.agencyID              = &quot;agencyID&quot;;
				rqa.predecessorID         = 0;
				rqa.locked                = false;
				rqa.deleted               = false;
				rqa.title                 = &quot;The Title &quot;&amp;#index#;
				rqa.policyNumber          = &quot;thePolicyNum&quot;;
				rqa.agencyName            = &quot;agencyName&quot;;
				rqa.totalPremium          = &quot;totalPremium&quot;;
				rqa.hasMessages           = false;
				rqa.isAssigned            = false;
				rqa.assignedTo            = &quot;&quot;;
				rqa.proposedEffDate       = currentTime;
	      rqa.proposedExpDate       = currentTime;
	      rqa.agentName							= &quot;agentName&quot;;
				ArrayAppend(rqaArray,rqa);
			}

			endTime = getTickCount();

			totalTime = endTime - initTime;
&lt;/cfscript&gt;
&lt;cfdump var=&quot;#arrayLen(rqaArray)#&quot;&gt;
&lt;cfdump var=&quot;#rqaArray[10000]#&quot; /&gt;
&lt;cfdump var=&quot;#totalTime#&quot; /&gt;
&lt;/code&gt; 
				</description>
				
				<category>Adobe</category>				
				
				<category>Site Performance</category>				
				
				<category>IT in General</category>				
				
				<category>Java</category>				
				
				<category>Universal Mind</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Fri, 12 Dec 2008 16:25:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2008/12/12/ColdFusion-createObject-Component-and-Pathing-Performance</guid>
				
			</item>
			
			<item>
				<title>A Mashup That Makes Sense</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2008/4/15/A-Mashup-That-Makes-Sense</link>
				<description>
				
				Recently &lt;a href=&quot;http://www.infoaccelerator.net&quot; target=&quot;_blank&quot;&gt;Andy Powell&lt;/a&gt; won a WII for his submission into the 360 Flex | API Contest. 

His winning application is a great example of leveraging multiple APIs that at first glance, one may be challenged in connecting the dots with regard to how they could be integrated into a single intuitive application.  When I first looked at Andy&apos;s initial layout and functionality as intuitive as it was, I got stoked because I could see that this application could be enhanced visually and functionally; so I am blogging about the enhancements I made to that effect.

First, I had some .css in mind to give it that Ribbit Green theme.  I adjusted the layout of the various nested canvases and converted them to use a form which allows for formitem conciseness with regard to alignment etc and allots for a default button (integrated form &apos;enter key&apos; functionality).

I sized down the respective API images into the main panels control bar (will be applying links shortly) and enhanced the map functionality which allows for a unique icon (hotel) to identify the selected hotel from other hotel POIs on the map.  Each time a search is performed the past icon is returned to its initial state and the newly selected hotel gets the new icon (member variables used to allow for this).  I will be styling the MapQuest info windows that pop up with selection of a POI shortly as the very customizable MapQuest API is 100% extensible.

I then relocated the RIBBIT dial up interface and adjusted dialing status to persist in the connection labeling area rather than separately at the bottom of the form to save real estate.  Lastly, I wrapped it in a panel with the hotel details form and nested it within a panel along with the MapQuest tilemap component.  This panel will soon be a slide in that will open/close via grid selection and panel close feature.  Please check out the new app on Andy&apos;s site here; &lt;a href=&quot;http://www.infoaccelerator.net/hotelsearch/&quot; target=&quot;_blank&quot;&gt;Ribbit, Kayak, MapQuest Mashup&lt;/a&gt; and book your hotel today 8-).

FYI, souce code is located at Andy&apos;s Google code site here:
&lt;a href=&quot;http://andrewpowell.googlecode.com/&quot; target=&quot;_blank&quot;&gt;AP&apos;s GCode site&lt;/a&gt;

&lt;img src=&quot;http://blog.strikefish.com/blog/images//rmk1.gif&quot;&gt; 
				</description>
				
				<category>Adobe</category>				
				
				<category>Universal Mind</category>				
				
				<category>ColdFusion</category>				
				
				<category>Flash</category>				
				
				<category>Flex</category>				
				
				<category>Ribbit</category>				
				
				<category>MapQuest</category>				
				
				<category>ActionScript</category>				
				
				<category>IT in General</category>				
				
				<pubDate>Tue, 15 Apr 2008 09:37:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2008/4/15/A-Mashup-That-Makes-Sense</guid>
				
			</item>
			
			<item>
				<title>Why VOs (transfer objects) are good...but they can be abused like...</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2007/11/29/Why-VOs-transfer-objects-are-goodbut-they-can-be-abused-like</link>
				<description>
				
				any other design pattern....

Sorry for the confusing title, but long titles are rather lame.  So you&apos;re a flex cf, java, or php developer and you are leveraging all the beautiful one to one mapping associated with server and client object creation.

&quot;YES!&quot;, you said.  No more guess work; my server vals returned can be readily passed around within my AS code with the ease of code insight! Ctrl-space... wow theres my property!  Ok, getting tacky I know.

So we embark on our design of a sytem always using VOs no matter the cost.  Eee gaadd stop now.  VOs, pending on design approaches may possibly have multiple layers of nested VOs YIKES!  

Everyone knows that Rambo&apos;s weapons of choice were the bone cutting hunting knife and explosive bow and arrows.  But there were times when he had to pull in the heavy artillery or perform a sneak attack with a much more lightweight approach like a choke hold (ahh, the violence of my youth...).

This is why VOs can be a problem if implemented without understanding the performance ramifications that can be incurred if they are always used.

Here&apos;s a real world scenario.  Requesting an array of 100+ VOs from your middle tier that each have nested arrays of child VOs.  Imagine just having two child VOs and the impact that could have on performance with this approach.

You call in to pull back the parent VOs that contain an array of child VOs (say 5) that all need to get created for each item in the array.  So in this process we are creating 100 parent objects and internal to each we are creating 10 child VOs.  This yields 1000 objects which each need to get created and the memory and process grow each time you do so on your middle tier (now add just a few users doing this incrementally over the first couple of hours).  

I&apos;m being facetious here of course as this isn&apos;t a very high number.  But why return such a dense object to the client unless you were going to use it.  There is a lot of wasted horsepower with this approach.  Think of the scene with Rambo emptying that M60 E4 machine gun and never hitting his target... &lt;img src=&quot;http://blog.strikefish.com/blog/images/rambo.jpg&quot; width=&quot;100&quot; height=&quot;114&quot; alt=&quot;Rambo&quot; /&gt;

A better approach is to pass back a snapshot of the data directly from your middle tier and pull back its VO representation when an edit needs to be performed or the VO truly is required to facilitate a process in the application.

So if you are going to populate a grid, I don&apos;t recommend doing it with VOs and if you absolutely have to create an array of VOs understand the possible performance impact (and data stagnation) that can ensue if the VO is of a complex nature and how it can impact the health of your server and ultimately the user experience.  

The J2EE Core Pattern docs on Transfer Object speak to this.  Check out the &quot;Consequences&quot; section of caching large sets of VOs. Line from the article:  There is a trade-off associated with this strategy. Its power and flexibility must be weighed against the performance overhead...  &lt;a href=&quot;http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html&quot; target=&quot;_blank&quot;&gt;THE LINK&lt;/a&gt; 
				</description>
				
				<category>Adobe</category>				
				
				<category>.NET</category>				
				
				<category>Site Performance</category>				
				
				<category>IT in General</category>				
				
				<category>Flex</category>				
				
				<category>Java</category>				
				
				<category>Universal Mind</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Thu, 29 Nov 2007 20:11:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2007/11/29/Why-VOs-transfer-objects-are-goodbut-they-can-be-abused-like</guid>
				
			</item>
			
			<item>
				<title>Flex ColdFusion Extension Wizard Gotcha</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2007/11/11/Flex-ColdFusion-Extension-Wizard-Gotcha</link>
				<description>
				
				This entry will hopefully be brief and to the point in regard to the title.  I want to start off by stating how much I like the ColdFusion extension support in Flex 2 and hope to see Adobe add extenstions that support other languages/middle tier solutions as well hint: (java, php, c#).  

There is nothing like beginning your application architecture and development with an out of the box mvc approach utilizing well known approaches to server side development utilizing delegates, services, daos, gateways, and value objects.  

Where I see a major problem with the extension is how it is implemented.  I have been involved with several projects that have utilized Flex and ColdFusion and upon initially beginning my trek into Flex 2 I saw this issue right away only because I have been working with ColdFusion for 10 years, have consulted on its benefits, scaled servers, architected highly successful and efficient enterprise solutions with it, and know the do&apos;s and don&apos;ts...

The problem I am speaking of with the CF extension implementation is the iterating over read functions in the data access object cfcs.

To be more clear, in the templated or skeleton dao cfcs there are db calls made, mostly crud calls.  The read function I am discussing here is &quot;r&quot; in crud.  The problem is that in many cases I&apos;ve seen engineers design a composite or aggregate VO.  This is a VO cfc that contains other VO cfcs.

This is a perfectly efficient and best practice OOP approach that ColdFusion handles very well.  The problem arises when a child resultset of ids (usually a query or array) is used to iterate over and call the read function in the dao to get the vo properties from the db to return via remoting to the Flex application.  

The main issue here is performance, specifically with the possible 100s of calls that can be made to the database in one ColdFusion request from the application.  Imagine a dump truck going 200 times to the gravel pit taking one pebble, with today&apos;s gas prices I don&apos;t think you&apos;d last long on the job if you took that approach 8-)... This is what you are doing when you loop over queries.  Not only could these calls prove to be slow and taxing on the database but it can also lock up threads in ColdFusion and create cpu and memory spiking out of the shoot.  You also have to deal with any kind of network latency that may exist between your CF server and the database as well.  AAAACKKKKK! 

But there is a solution:  First a band-aid needs to be applied.  For these complex objects an investigation must be made to locate where these iterating processes could be going on.  Second, there is a function in ColdFusion that automagically converts a query field to a comma-delimited value list(or delimiter of your choosing).  The function is called &quot;valueList(query.column, &apos;,&apos;)&quot; there is also a quotedValueList for strings.  With this list you could then use the SQL IN clause on the hopefully indexed id field used to pull back the child VO data.  Add another function in the dao or better yet the data gateway that specifies readMultiple or getMulipleObjectName...

Once this is done the code should truly be refactored to call the database only once for all its data (think one cf call/one db call).  If you did not know ColdFusion is one of the most robust languages when integrating with the more popular dbms on the market (Oracle, SQL Server, MySQL, DB2, Informix).  The cfstoredproc tag allows you to call into a stored procedure to get procedure resultsets.  

cfstoredproc also allows a developer to return multiple resultsets from a stored procedure to ColdFusion.  So, one call to a stored procedure in Oracle that returns 2,3,4,or more ref cursors to ColdFusion.  These could be all your objects&apos; data which only requires you to loop once over all of them (maybe some nesting and brief logic to create them, but still 1000s of times faster than separate db calls for each loop).

This may be one of the drier entries I&apos;ve had (no code, pictures, jokes).  But I hope it helps you when using and not abusing the ColdFusion extension wizards in Flex 8-). 
				</description>
				
				<category>Adobe</category>				
				
				<category>Database</category>				
				
				<category>Site Performance</category>				
				
				<category>IT in General</category>				
				
				<category>Flex</category>				
				
				<category>Universal Mind</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Sun, 11 Nov 2007 19:51:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2007/11/11/Flex-ColdFusion-Extension-Wizard-Gotcha</guid>
				
			</item>
			
			<item>
				<title>ColdFusion 8 Getting Started</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2007/9/11/ColdFusion-8-Getting-Started</link>
				<description>
				
				Ben has posted all the code and a few of the electronic chapters.  Enjoy!!!!  &lt;a href=&quot;http://www.forta.com/books/032151548X/&quot; target=&quot;_blank&quot;&gt;THE LINK&lt;/a&gt; 
				</description>
				
				<category>Adobe</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Tue, 11 Sep 2007 16:42:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2007/9/11/ColdFusion-8-Getting-Started</guid>
				
			</item>
			
			<item>
				<title>Ba BYe CFDJ...</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2007/9/9/Ba-BYe-CFDJ</link>
				<description>
				
				Was anyone really reading it anymore anyway?  ColdFusion is such a mature technology with a huge blogging community behind it.  What did CFDJ have to offer when you can head over to forta.com, coldfusionjedi.com, or yours truly to get answers?  

I have answered many questions for those who have worked with ColdFusion and having written for the journal in the past a part of me feels sad for that, but this move by SYS-CON in no way should reflect on the technology itself.  With ColdFusion 8 out it is going to significantly make an impact in areas of enterprise report solutions, image storage and manipulation, AJAX integration, and the list goes on... 
				</description>
				
				<category>Adobe</category>				
				
				<category>IT in General</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Sun, 09 Sep 2007 19:26:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2007/9/9/Ba-BYe-CFDJ</guid>
				
			</item>
			
			<item>
				<title>CF 8 WACK ADVANCED GO PREORDER!!! 8-)</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2007/8/24/CF-8-WACK-ADVANCED-GO-PREORDER-8</link>
				<description>
				
				&lt;a href=&quot;http://www.amazon.com/ColdFusion-Web-Application-Construction-Kit/dp/0321515471/ref=sr_1_1/104-7766796-6841565?ie=UTF8&amp;s=books&amp;qid=1187975936&amp;sr=8-1&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.strikefish.com/images/cf8advwack.jpg&quot;&gt;&lt;/a&gt;

The title says it all, this book is a must have for anyone who works with ColdFusion or is interested in some of the advanced topics associated with the language and the newly released version 8.  Having written for this book I am truly amazed at all the effort and new features Adobe has injected into the language.

It is truly... per Tim Buntel, &quot;The Swiss Army Knife&quot; for any enterprise utilizing web based applications/technologies. 
				</description>
				
				<category>Adobe</category>				
				
				<category>.NET</category>				
				
				<category>IT in General</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Fri, 24 Aug 2007 13:27:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2007/8/24/CF-8-WACK-ADVANCED-GO-PREORDER-8</guid>
				
			</item>
			
			<item>
				<title>Simple Cluster Setup With CF 8</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2007/8/23/Simple-Cluster-Setup-With-CF-8</link>
				<description>
				
				Last evening I installed ColdFusion 8 for a client and setup two instances outside of the default cfusion for clustering.  Gone are the days of MX when one had to access jrunsvc or jrun itself to create a Windows Service for the instance or stop and start the instance via the command line.  ColdFusion 7 had these features as well, but I wanted to note ColdFusion 8&apos;s continued support of clustering.  It is a bugless or for lack of a better term &quot;gotchaless&quot; task that if all ducks are in a row can take minutes to configure in its entirety, including install of ColdFusion, import of legacy CAR file, creation of instances (deployment, etc.), and configuring the cluster.

For those that are looking for CF 8 documentation on clustering ColdFusion it is located here: &lt;a href=&quot;http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=clustering_6.html&quot; target=&quot;_blank&quot;&gt;CF 8 clustering&lt;/a&gt;. 

I would like to see an updated approach to clustering with CF 8 and BIG IP (hardware load balancers in general).  Some of the more advanced topics, are a bit out of date and at this time many companies are upgrading their hardware infrastructure and would benefit from this updated information. 
				</description>
				
				<category>Adobe</category>				
				
				<category>Site Performance</category>				
				
				<category>IT in General</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Thu, 23 Aug 2007 09:02:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2007/8/23/Simple-Cluster-Setup-With-CF-8</guid>
				
			</item>
			
			<item>
				<title>Flex and ColdFusion &quot;They&apos;re in the Game...&quot;</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2007/7/17/Flex-and-ColdFusion-Theyre-in-the-Game</link>
				<description>
				
				I recently assisted &lt;a href=&quot;http://www.xostech.com&quot; target=&quot;_blank&quot;&gt; XOSTechnologies, Inc.&lt;/a&gt; in clustering their ColdFusion servers with a bit of development to support a site they engineered with a full Flex 2.0 front end utilizing Flash Remoting (AMF) to ColdFusion 7.0.2 cfcs (ColdFusion talking to Oracle).  ColdFusion processes are monitored by &lt;a href=&quot;http://www.seefusion.com&quot; target=&quot;_blank&quot;&gt;SeeFusion&lt;/a&gt;. 

The site was built to support the &lt;a href=&quot;http://www.easports.com&quot; target=&quot;_blank&quot;&gt;EA Sports&lt;/a&gt; gaming community and their release of some of the most dynamic sports gaming software to date.  The site is a social community which allots for picture and video upload as well as messaging, forums, and that&apos;s not all.  You should check it out at &lt;a href=&quot;http://www.easportsworld.com&quot; target=&quot;_blank&quot;&gt;EA Sports World&lt;/a&gt;.  

For details on their infrastructure as they are &quot;doing it right&quot; feel free to send me an email. 
				</description>
				
				<category>Adobe</category>				
				
				<category>Site Performance</category>				
				
				<category>Flash</category>				
				
				<category>Flex</category>				
				
				<category>IT in General</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Tue, 17 Jul 2007 14:11:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2007/7/17/Flex-and-ColdFusion-Theyre-in-the-Game</guid>
				
			</item>
			
			<item>
				<title>Scorpio.NET</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2007/4/28/ScorpioNET</link>
				<description>
				
				How stoked am I?!?  I&apos;m currently installing Scorpio having been assigned the .NET integration chapter in Ben Forta&apos;s new CF 8 Web Application Construction Kit book.  I have been working with Visual Studio 2005 for quite awhile now and enjoy coding in C#.

There are many benefits to calling into .NET assemblies on the Windows platform.  I believe the most important is performance and in this area of performance, specifically database integration utilizing ADO.NET (arguable, I know) to connect, retrieve and edit data with SQL Server 2005.  

Let&apos;s face it, when it comes to feature set Java and .NET are like comparing Macintosh to Red Delicious, but it is just plain common sense that Microsoft plays better with Microsoft specifically when integrating with the Windows API.  This is a great reason for the businesses running ColdFusion hosted on Windows to look into utilizing the new native .NET integration support with Scorpio.  I understand some of you may be saying, &quot;Yeah, we got sold that bag of goods during the COM days.&quot;, but .NET is a much more stabile and robust platform.

There is a true talent concern here for offices that have ColdFusion, .NET and Java talent.  ColdFusion, still being the most RAD app. server on the market (MHO) integrates nicely with all of them now and this will allow companies to build applictions at a much faster pace utilizing all of their in-house skill sets.  We all know the individuals who swear by his/her chosen talent (i.e. .NET, Java, ColdFusion).  If you&apos;re working in an office that has all three you will be able to leverage them when ColdFusion 8 is released. 
				</description>
				
				<category>ColdFusion</category>				
				
				<category>.NET</category>				
				
				<pubDate>Sat, 28 Apr 2007 08:12:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2007/4/28/ScorpioNET</guid>
				
			</item>
			
			<item>
				<title>ColdFusion Version Chart</title>
				<link>http://blog.strikefish.com/blog/index.cfm/2007/4/2/ColdFusion-Version-Chart</link>
				<description>
				
				I was recently doing some research with regard to a customer&apos;s version of ColdFusion and thought that this would be helpful.  Adobe keeps a chart of the versions of ColdFusion at this &lt;a href=&quot;http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18515&quot; target=&quot;_blank&quot;&gt;link&lt;/a&gt;.  

Why is this important you may ask?  Well, as in every software package there are patches and updates that come on-line as the product matures. In past cases there have been versions of CF which have had issues that a patch or update resolved.  With any update it is important to conduct preliminary tests of your current environment with the update in a test or staging area to resolve any issues that might arise, though it is rare to see an updater to CF result in an unstable machine.

To locate the version of CF that you currently have installed, open the CF administrator and browse to Settings Summary.  You will see version information at the top of the screen output.  It will look something like this:

&lt;table border=&quot;0&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;
	&lt;td colspan=&quot;2&quot; bgcolor=&quot;#E2E6E7&quot; class=&quot;cellBlueTopAndBottom&quot;&gt;
		&lt;b&gt;
Version Information
&lt;/b&gt;
	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
	&lt;td&gt;
		
		&lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt;
		&lt;tr&gt;
			&lt;td colspan=&quot;2&quot; class=&quot;cellBlueTopAndBottom&quot; bgcolor=&quot;#F3F7F7&quot;&gt;
				&lt;strong&gt;
Server Details
&lt;/strong&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td width=&quot;250&quot; nowrap class=&quot;cell3BlueSides&quot;&gt;
				
Server Product

			&lt;/td&gt;
			&lt;td class=&quot;cellRightAndBottomBlueSide&quot; width=&quot;1000&quot;&gt;
				ColdFusion MX
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td nowrap class=&quot;cell3BlueSides&quot;&gt;
				
Version

			&lt;/td&gt;
			&lt;td class=&quot;cellRightAndBottomBlueSide&quot;&gt;
				7,0,2,142559 &amp;nbsp;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td nowrap class=&quot;cell3BlueSides&quot;&gt;
				
Edition

			&lt;/td&gt;
			&lt;td class=&quot;cellRightAndBottomBlueSide&quot;&gt;
				
	
	


	


	


	


	


	
	
	
	
		
			
				Enterprise &amp;nbsp;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td nowrap class=&quot;cell3BlueSides&quot;&gt;
				
Serial Number

			&lt;/td&gt;
			&lt;td class=&quot;cellRightAndBottomBlueSide&quot;&gt;
				Not displayed to protect the innocent 8-) &amp;nbsp;
			&lt;/td&gt;
		&lt;/tr&gt;

		&lt;tr&gt;
			&lt;td nowrap class=&quot;cell3BlueSides&quot;&gt;
				
Operating System

			&lt;/td&gt;
			&lt;td class=&quot;cellRightAndBottomBlueSide&quot;&gt;
				Windows XP &amp;nbsp;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td nowrap class=&quot;cell3BlueSides&quot;&gt;
				
OS Version

			&lt;/td&gt;
			&lt;td class=&quot;cellRightAndBottomBlueSide&quot;&gt;
				5.1 &amp;nbsp;
			&lt;/td&gt;
		&lt;/tr&gt;
		&lt;/table&gt;
		
	&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;br&gt;&lt;br&gt; 
				</description>
				
				<category>Adobe</category>				
				
				<category>Site Performance</category>				
				
				<category>IT in General</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Mon, 02 Apr 2007 07:12:00 -0400</pubDate>
				<guid>http://blog.strikefish.com/blog/index.cfm/2007/4/2/ColdFusion-Version-Chart</guid>
				
			</item>
			</channel></rss>