Dec 03
Brian Kotek has just published a great Fusebox4.1 sample app based on the same sample application he’s done in Fusebox3, FuseQ, Fusebox4 and now Fusebox4.1 - the bookstore. It’s available to download on his site, here.
Brian uses some of the new XML that was introduced in Fusebox4.1 to invoke CFCs within circuit definition files although i would like to see some of the code he’s used in fusebox.init.cfm to define classes moved into fusebox.xml.cfm and then have CFCs instatiated using the new INSTATIATE verb just to leverage all the new functionality in Fusebox4.1. Great job, Brian!
December 3rd, 2004 at 6:06 pm
Intersting John. How could I use <instantiate> from fusebox.xml.cfm? And am I wrong in thinking that if you rely on <instantiate> then you open yourself up to potential race conditions if you instantiate into the application scope because there’s no way to lock?
December 3rd, 2004 at 6:37 pm
you can’t do it entirely with fusebox.xml.cfm, you use a globalpreprocess call to a fuseaction that checks if the app is initialised, if it’s not it calls an initialise fuseaction that does the instantiation. I wrote about the method i use at http://www.fusebox.org/forums/messageview.cfm?catid=27&threadid=4086
December 3rd, 2004 at 6:38 pm
as for the locking problem, see this post on my blog - http://www.beynon.org.uk/index.cfm?mode=entry&entry=03672E35-C5D0-F70D-926C2D567BF20686
December 14th, 2004 at 4:10 pm
I’d also like to say that is quite good at yodeling. The best, some say.
Love,
randomUSA
December 14th, 2004 at 4:11 pm
I meant that Brian was good at yodeling (seen him do it). But I’m sure johnb is good, too.