The way I (possibly incorrectly) use the term gateway in cfcs is really only for providing access to external applications, e.g. Flash/Flex apps, other websites.
I also code the Flash/Flex app to have its own gateway component, which then talks to my gateway cfc, so the apps only talk to eachother through the gateways. A possibly bad analogy: (but the way I like to think of it in my head) My CF app is like my electrical house wiring, and its gateway is a three pin electrical socket. My remote app is like my toaster, and its gateway is a three pin electrical plug. I plug one gateway into the other, this means I dont have to wire up my toaster to the mains, making life easier when I buy a new toaster :) To use the Table Data Gateway example, I would probably name that a manager CFC. I would concede the point that the database is in fact an external application, however the distinction for me is that my CF app would function as normal if the remote Flash/Flex app disappeared, but would fall over immediately if there was no database - the CF server/JDBC drivers are the real gateway between my CF app and the database. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Patrick McElhaney Sent: 13 July 2005 14:36 To: [email protected] Subject: Re: [CFCDev] gateway CFCs In Patterns of Enterprise Architecture, Martin Fowler defines Gateway as "An object that encapsulates access to an external system or resource." Most discussions of Gateway on this list relate to Table Data Gateway: "An object that act as a Gateway to a database table. One instance handles all the rows in a table." In other words, you create a CFC that encapsulates access to a database table with functions like create(), retrieve(), update(), and delete(). Patrick -- Patrick McElhaney 704.560.9117 http://pmcelhaney.weblogs.us ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
