-Matt
On Mar 16, 2004, at 6:33 PM, Nathan Dintenfass wrote:
OK -- I've expanded the language about the exception to encompass all
facades. Matt -- do you agree with Sean that accessing shared memory
variables in that case should be encapsulated within the facade rather than
be done ad hoc throughout a CFC-only application?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Matt Liotta Sent: Tuesday, March 16, 2004 2:47 PM To: [EMAIL PROTECTED] Subject: Re: [CFCDev] Session/Application inside a CFC, WAS: RFC, CFC Best Practices
Again, if the only entry point is a CFC, then a CFC has to be able to directly use session and application. It is entirely possible and potentially very wise to create an entire application using only CFCs.
-Matt
On Mar 16, 2004, at 5:40 PM, Sean A Corfield wrote:
On Mar 16, 2004, at 2:24 PM, Nathan Dintenfass wrote:Matt -- I don't understand your point here at all. Can you show an example?
He means the situation when a CFC is your entry point (as in a RIA using Flash Remoting or Web Services).
The answer in that case is to use a fa�ade, e.g., a Session Fa�ade where the entry point CFC creates an instance of a model CFC and places it in session scope (and delegates most operations to that instance).
In that case, you've isolated the reference to the external scope into
one place and totally encapsulated it. It's the exception to the rule
of "never refer to session / application / server / request scope
inside a CFC".
Regards, Sean
---------------------------------------------------------- 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]
---------------------------------------------------------- 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]
