When calling your CFC remotely, you wouldn't be accessing the object as 
part of any particular scope, so the object would be reinstantiated on 
each call (remember to properly scope your variables). If you want your 
object to be cached in some fashion, have your template call a .cfm page 
which accesses your object from a scope, where you might have it cached 
in the SESSION or APPLICATION scope, where you <cfoutput> your return 
inside of a <cfcontent> block specifying a text return type. I'm fairly 
sure you couldn't do this for a webservice call, but I've used this 
technique before with Ajax calls prior to CF8 (for different reasons).

Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_____________________________
http://blog.cutterscrossing.com

Dominic Watson wrote:
> When calling a cfc remotely - either as a webservice or as part of an ajax
> setup, etc - does the component get cached by ColdFusion at all? I.e. do I
> need to consider that the component will be reinstantiated every time I use
> it?
> 
> Dominic
> 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298033
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to