because I need coldfusion to realize that the application name is
this.  Its for my use, as much as it is variable management, to
segregate the application scope variables in the different
environments.

On 12/19/06, Andrew Scott <[EMAIL PROTECTED]> wrote:
Why not try application.applicationName instead, it is confusing but
application scope applies in the onApplicationStart.

HTH



Andrew Scott
Senior Coldfusion Developer
Aegeon Pty. Ltd.
www.aegeon.com.au
Phone: +613  8676 4223
Mobile: 0404 998 273


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ryan Guill
Sent: Wednesday, 20 December 2006 6:33 AM
To: [email protected]
Subject: [CFCDEV] Application.cfc This. variables question

Hey everyone,

I generally have to support backwards compatability for most of our
applications back to pre cf 7 and so I have not really dug into the
Application.cfc code much at all yet.  But now I am getting into it
and noticing something that strikes me as strange.

In the pseudo-constructor,  you set this.name, which is the
application name correct?  Well we have different environments here,
like DEV, QA and PROD and the code decides what environment it is in
based on what port it is running in.  So for instance, my development
port is 8005, so the code knows what environment it is in and sets
several different variables, such as mappings and such based on that,
and we also set the application name based on that.  So if the
application is appName the production application name would be
appName_prod, and development is appName_dev.

So I was doing a switch statement over the cgi.SERVER_PORT inside of
onApplicationStart() to determine how to name the application and was
setting this.name to it.  It doesn't throw an error, but it is not
setting this.name correctly either.

Can you not change the value of the this scope variables outside of
the pseudo constructor?

--
Ryan Guill
A Deep Blue
[EMAIL PROTECTED]
www.ryanguill.com
(270) 217.2399
got google talk?  Chat me at [EMAIL PROTECTED]

Use CF and SQL? Try qBrowser - http://www.ryanguill.com/docs/

www.ryanguill.com/
The Roman Empire: www.ryanguill.com/blog/


You are subscribed to cfcdev. To unsubscribe, please follow the instructions
at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]



You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]




--
Ryan Guill
A Deep Blue
[EMAIL PROTECTED]
www.ryanguill.com
(270) 217.2399
got google talk?  Chat me at [EMAIL PROTECTED]

Use CF and SQL? Try qBrowser - http://www.ryanguill.com/docs/

www.ryanguill.com/
The Roman Empire: www.ryanguill.com/blog/


You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]

Reply via email to