Additional instructions for LCDS 2.6 with CF8

If you plan upgrading built-in LCDS to version 2.6 you should follow the instructions provided in the LCDS_for_CF.txt under the resources/ColdFusion folder.

Additionally to that, you should also copy the cfgatewayadapter.jar that you can find under the { extractedLCDSFolder }/WEB-INF/lib to your ColdFusion /WEB-INF/flex/jars folder.

In my previous post, I mentioned that Flex 3 revision 1092 should be used but unfortunately there is a bug which creates a lot of stacktraces on your server's logs and it seems that it has been fixed in revision 1122 that you can get here.

CF8 bug resolving CFC paths when using RTMP channel

I didn't understand why sometimes my application failed to start properly. I've launched a debug session and enabled the 'break on exception' option and found that onApplicationStart was failing in this line:

<cfset application.beanFactory = createObject('component','coldspring.beans.DefaultXMLBeanFactory').init()>

throwing that the returned type of the init method wasn't of the type 'coldspring.beans.DefaultXMLBeanFactory'. This is weird because my Application.cfc is in my webroot, the ColdSpring folder also and I have a / for the webroot (needed for RTMP).

[More]

LCDS DataService.commit() undocumented arguments

I was working on a LCDS project with Flex Builder when I realized that code-hinting was providing me information for arguments regarding the commit method on the DataService class.

If you take a look here you'll see that commit method isn't expecting any argument. The 2 arguments Flex Builder was listing was ItemsOrCollections and cascadeCommit.

[More]

ColdFusion 8: how to implement (one/many)-to-one for Managed Associations

LCDS provides 2 ways of feeding your application with complex objects. Those objects can be hierarchical or managed. When dealing with hierarchical objects filled from a destination, that destination is responsible for committing all changes back to the database.

[More]

Creating Data Management Destinations with CFFramework

Editing the data-management configuration file is sometimes tedious and I don't always recall all of the available options.

With the amazing CFFramework provided by CFEclipse, I was able to add support for data-management configuration files in 5 minutes.

[More]

Using large datasets with CF8 and LCDS

When ColdFusion 7 introduced support for LifeCycle Data Services (FDS at that time), we were forced to use CFCs. Due to CFC's creation overhead, it was a painful job for CFers when dealing with large datasets (+1000 records).

With CF8, CFC creation has improved a lot in this area. First of all, CFC creation is a lot faster, for an array of 1000+ CFCs, with 8 properties + 1 lazy loaded object we registered with trusted cache on, an average time of 4.5 seconds in CF7. With CF8 we are around 1 sec for the exact same collection.

[More]

BlogCFC was created by Raymond Camden. This blog is running version 5.8.001. Design by dcarter.