On Friday, Jul 25, 2003, at 10:23 US/Pacific, <[EMAIL PROTECTED]> wrote:
which brings up a question I have. If you use <cfinvoke> to call a method in a cfc does the cfc actually get instantiated?

It depends how you call it:


        <cfinvoke component="foo" method="bar">
        <cfinvoke component="foo" method="bar">
        <cfinvoke component="foo" method="bar">

That creates an instance each time.

        <cfset foo = createObject("component","foo")>
        <cfinvoke component="#foo#" method="bar">
        <cfinvoke component="#foo#" method="bar">
        <cfinvoke component="#foo#" method="bar">

That creates one instance and then uses it in each cfinvoke.

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

Reply via email to