I was going back through the code and found a bug in how the ReactorGatewayFactory was (or more accurately wasn't) being created.  If you downloaded it before reading this email, please download it again.  Now the following should work properly:

Say you have a Person table.  You should now be able to do the following:

<!--- create a query of all Person records named qPerson --->
<cfset qPerson = getProperty("ReactorGatewayFactory").createGateway("Person").getAll() />

By doing this, the PersonGateway is now held in the application scope and will only be instantiated one time in the life of the application.

Sorry for the oversight, but the new code is now available at:
http://www.worldwildweb.biz/event=jumpStart

If you have already built on top of the app and don't want to do a wholesale change, you can update by pulling down the new code and making the following changes to your application:
  • Added the following line to the <plugin></plugin> section in mach-ii.xml.cfm:
    <plugin name="SetReactorGatewayFactory" type="plugins.SetReactorGatewayFactory " />  
You will then want to replace the following files
  •  /plugins/SetReactorGatewayFactory.cfc
  • /model/ReactorGatewayFactory.cfc

Sorry for the oversight!

--
~Dave Shuck
[EMAIL PROTECTED]
www.daveshuck.com
www.worldwildweb.biz -- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/

Reply via email to