> > CFINVOKE and createObject are very different beasts. CFOBJECT and
> > createObject are the same, but CFINVOKE creates and instance of the
> > CFC, calls the specified method on it, and then lets the instance
> > disappear, with no hope of holding on to it for future reuse.
> 
> What if the method you call with cfinvoke returns an instance of 
> the CFC?

Presumably, from you this is a rhetorical question, but the answer is that
you will have an instance variable which you can later use to call methods
of that instance. However, the typical use case for CFINVOKE is to call
methods of stateless or static objects, in my experience.

Dave Watts, CTO, Fig Leaf Software 
http://www.figleaf.com/ 
phone: 202-797-5496 
fax: 202-797-5444



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185602
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

Reply via email to