That's what is cool about CF, there are multiple ways to skin the cat. I like plain old cfinvoke as it seems the most intuitive to me.
-- Josh ----- Original Message ----- From: "Dave Watts" <[EMAIL PROTECTED]> To: "CF-Talk" <[email protected]> Sent: Tuesday, February 28, 2006 11:19 AM Subject: RE: cfscript or cfinvoke >> Does anyone else find it somewhat ridiculous the number of >> ways you can call a CFC? > > Not at all! > >> <cfscript> obj = createobject(...);</cfscript> <cfset obj = >> createobject(...)> <cfinvoke ...> <cfobject ...> using any of >> the above methods, you can call it like a web service call it >> directly from the url, ?method=myFunction&argument=argument >> call it through flash remoting >> call it through flash remoting variants such as Flex call it >> through an event gateway >> >> That's 9... are there any more? > > You can use any function within a tag or within a CFSCRIPT block, so I > don't > really think that's a useful differentiation. You can also constrain how > CFCs are invoked using the appropriate access modifiers within functions. > > Another way that you haven't mentioned is to call CFCs from within Java - > I > think that's new to CFMX 7.0.1. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > > Fig Leaf Software provides the highest caliber vendor-authorized > instruction at our training centers in Washington DC, Atlanta, > Chicago, Baltimore, Northern Virginia, or on-site at your location. > Visit http://training.figleaf.com/ for more information! > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233665 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

