Ok, makes sense. I was confused by the fast that in .NET, you can instantiate 
an object via a webservice and have it be stateful, ie remoting.


 

   -Chase


 
Application Developer
B U L L H O R N




Staffing and Recruiting Software On Demand 

The Last Software You'll Ever NeedTM 
313 Congress St, 4th Floor Boston, MA 02210 
617.478.9119 
www.bullhorn.com

 
-----Original Message-----
From:Dave Watts [EMAIL PROTECTED] 
To: "CF-Talk" ;
Sent: Mar 20, 2006 12:40:46 PM
Subject: RE: CFC Invoked from .NET not keeping state
> I believe that an object instantiated from a CFC is behaving 
> differently in ColdFusion than in .NET. Specifically, in .NET 
> the object is not retaining its internal state between method 
> calls. Hopefully I am doing something wrong. I have tried to 
> reduce what I'm doing to the smallest possible test case. I 
> am using ColdFusion 7 and VS.NET 2005. 
> 
> ... 
> 
> In other words, the hookup to the webservice is working, but 
> the object is not persisted between method calls. I guess I 
> could make my CFC stateless and pass all the variables back 
> and forth, but I don't think that's the intention with the 
> CFCOMPONENT tag. What am I doing wrong? 

Actually, that's exactly how things should be working. Web services are 
stateless, whether called from CF or .NET or whatever. CF components called 
directly using the CFOBJECT tag with the COMPONENT attribute are essentially 
instances of a class in memory, and have state. If you called the same 
component from CF as a web service, it would be stateless. 

Dave Watts, CTO, Fig Leaf Software 
http://www.figleaf.com/ 

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information! 




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