Can we see the calling code and the CFC? It would help greatly. Roland
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nolan Erck Sent: Thursday, June 24, 2004 6:12 PM To: [EMAIL PROTECTED] Subject: [CFCDev] CFCs and the Variables scope Done beating my head on the desk. Thought I'd ask for help. I have a CFC I'm calling like so: <cfset ws = CreateObject( "webservice", Variables.strWebServiceURL )> <cfset ws.init( 012345678 )> <!--- pass in the "customer number" for the customer we're manipulating ---> init() looks like so: <cffunction name="init" output="true" access="remote" returnType="void"> <cfargument name="customer" type="numeric" required="true"> <cfset Variables.customer = arguments.customer> </cffunction> which should set Variables.customer as available for the life of my CFC instance, right? The very next line of code in my calling template is this: <cfset tOrderStuff = ws.createNewOrder()> ...and inside createNewOrder() I'm using Variables.customer. Here's the catch... If I move that CFC locally and call it via CreateObject( "component" ), all is fine. If I move to the other server and call it via CreateObject( "webservice" ), it says "customer" is not defined in Variables. It's as if the object is dying instead of persisting, in between method calls! Am I forgetting something about the behavior of CFCs? Thanks, Nolan ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com). An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
