I am doing:
<cfinvoke compenent ="Book" method="init" returnvariable="my_book">
<cfinvokearguemnt ....>
</cfinvoke>
Thanks, I will try that, and see if it works better.
>Did you use something like
>
><cfinvoke component="foo" method="goo" returnVariable="result">
</cfinvoke>
>
>?
>
>If so, then you are recreating the component on each request. You can,
>and probably should, store the CFC one time in a persistant scope.
>Your Application.cfc's onApplicationStart could do something like
>this:
>
><cfset application.foo = createObject("component", "foo")>
>
>Then your CFC can do:
>
><cfinvoke component="#application.foo#" method="goo" returnVariable="reuslt">
>
>or
>
><cfset result = application.foo.goo()>
>
>
>
>>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334425
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm