Re: 2 applications on one server

2009-04-16 Thread Richard White

thanks for all your comments, i also read that in the documentation but it 
didn't even register that this.name and application.name wouldn't be 
equivalent... but it does make sense

thanks again for the help


> > thanks for your comments it is now seperating the 2 but the names 
> were different the only
> > thing we changed was:
> >
> > 
> > 
> >
> > to
> >
> > 
> > 
> >
> > why would changing it from 'application' to 'this' rectify this 
> conflict
> 
> Within Application.cfc, "this.name" is how you name an application,
> and "application.name" is how you refer to a variable called "name"
> from within the Application scope. That variable is not the
> application name, it's just a variable called "name". Without
> "this.name", your application doesn't have a name.
> 
> 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! 

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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321681
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: 2 applications on one server

2009-04-16 Thread Ian Skinner

Richard White wrote:
> why would changing it from 'application' to 'this' rectify this conflict
>
> thanks
>   

Because it does! :-)  I don't know why this is but "this.name" and the 
equivalent  don't set a variable names 
"application.name" they set a variable named "application.applicationName".

And I honest don't know what would happen if you tried to set 
application.applicationName directory.  I suspect it would be 
unpredictable.  I just follow the documentation that tells me to use 
this.name OR 



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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321680
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: 2 applications on one server

2009-04-16 Thread Dave Watts

> thanks for your comments it is now seperating the 2 but the names were 
> different the only
> thing we changed was:
>
> 
> 
>
> to
>
> 
> 
>
> why would changing it from 'application' to 'this' rectify this conflict

Within Application.cfc, "this.name" is how you name an application,
and "application.name" is how you refer to a variable called "name"
from within the Application scope. That variable is not the
application name, it's just a variable called "name". Without
"this.name", your application doesn't have a name.

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!

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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321679
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: 2 applications on one server

2009-04-16 Thread Dave Watts

> If the application "name" is the same in both directories they will share
> the same application scope.

Yeah, I would have thought that went without saying, but I guess not.

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!

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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321677
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: 2 applications on one server

2009-04-16 Thread Richard White

thanks for your comments it is now seperating the 2 but the names were 
different the only thing we changed was:




to





why would changing it from 'application' to 'this' rectify this conflict

thanks


> Richard White wrote:
> > we have 2 different directories for both applications however will 
> the application scope conflict?
> 
> Ahh different issue.
> 
> ColdFusion distinguishes different applications by the application 
> name 
> string.  Any template, in any directory running under any application 
> 
> cfc or application.cfm file and the same server that share the same 
> application name will be considered to be the same application.  And 
> thus they will share the same application scope variables.
> 
> So change the name of one of the applications within either the 
> this.name = "" or  command that you used.
> 
> 
> 


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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321676
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: 2 applications on one server

2009-04-16 Thread Mark Kruger

Dave,

If the application "name" is the same in both directories they will share
the same application scope.

-mark
 


Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Thursday, April 16, 2009 12:26 PM
To: cf-talk
Subject: Re: 2 applications on one server


> we have 2 different directories for both applications however will the 
> application scope conflict?

Not if your applications, and the components they use, are within two
completely separate directories.

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!



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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321674
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: 2 applications on one server

2009-04-16 Thread Dave Watts

> we have 2 different directories for both applications however will the 
> application scope
> conflict?

Not if your applications, and the components they use, are within two
completely separate directories.

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!

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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321671
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: 2 applications on one server

2009-04-16 Thread Ian Skinner

Richard White wrote:
> we have 2 different directories for both applications however will the 
> application scope conflict?

Ahh different issue.

ColdFusion distinguishes different applications by the application name 
string.  Any template, in any directory running under any application 
cfc or application.cfm file and the same server that share the same 
application name will be considered to be the same application.  And 
thus they will share the same application scope variables.

So change the name of one of the applications within either the 
this.name = "" or  command that you used.





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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321670
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: 2 applications on one server

2009-04-16 Thread Wil Genovese

not if you name each application with a unique name.

We run thousands of applications on a single server, each with a  
unique name, and there are no problems.


Wil Genovese

One man with courage makes a majority.
-Andrew Jackson

A fine is a tax for doing wrong. A tax is a fine for doing well.

On Apr 16, 2009, at 1:10 PM, Richard White wrote:

>
> we have 2 different directories for both applications however will  
> the application scope conflict?
>
> we use modelglue and coldspring which loads items into the  
> application scope, but we are noticing these are conflicting... it  
> seems as though when we go to one application it is overwriting the  
> application variables of the other application
>
>
>
>
>
>> Richard White wrote:
>>> basically i am confused as to how this works with 2 application.
>> cfc's
>>>
>>> each one of the applications should be totally seperate but how does
>> coldfusion know which application.cfc to use and how come they dont
>> conflict with each other?
>>
>> As the documentation discuss in great length with examples and
>> pictures...
>>
>> ColdFusion starts with the location of the file being request and
>> looks
>> in that directory for first an Application.cfc file and then an
>> Application.cfm.  If it does not fine either of these in that
>> directory
>> it goes up to the parent directory and looks for first an
>> Application.cfc and then an Application.cfm file.  It contiues this
>> search up the directory tree until it finds either an Application.cfc
>>
>> file or an Application.cfm file or reaches the *file* root directory.
>>
>> Note this can be above the web root.
>>
>> If your two applications are in separate and distinct directory
>> structures and these directory trees have separate Application files
>> then the applications will be independent.
>
>
> 

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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321669
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: 2 applications on one server

2009-04-16 Thread Richard White

we have 2 different directories for both applications however will the 
application scope conflict?

we use modelglue and coldspring which loads items into the application scope, 
but we are noticing these are conflicting... it seems as though when we go to 
one application it is overwriting the application variables of the other 
application





> Richard White wrote:
> > basically i am confused as to how this works with 2 application.
> cfc's
> >
> > each one of the applications should be totally seperate but how does 
> coldfusion know which application.cfc to use and how come they dont 
> conflict with each other?
> 
> As the documentation discuss in great length with examples and 
> pictures...
> 
> ColdFusion starts with the location of the file being request and 
> looks 
> in that directory for first an Application.cfc file and then an 
> Application.cfm.  If it does not fine either of these in that 
> directory 
> it goes up to the parent directory and looks for first an 
> Application.cfc and then an Application.cfm file.  It contiues this 
> search up the directory tree until it finds either an Application.cfc 
> 
> file or an Application.cfm file or reaches the *file* root directory.  
> 
> Note this can be above the web root.
> 
> If your two applications are in separate and distinct directory 
> structures and these directory trees have separate Application files 
> then the applications will be independent.


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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321665
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: 2 applications on one server

2009-04-16 Thread Ian Skinner

Richard White wrote:
> basically i am confused as to how this works with 2 application.cfc's
>
> each one of the applications should be totally seperate but how does 
> coldfusion know which application.cfc to use and how come they dont conflict 
> with each other?

As the documentation discuss in great length with examples and pictures...

ColdFusion starts with the location of the file being request and looks 
in that directory for first an Application.cfc file and then an 
Application.cfm.  If it does not fine either of these in that directory 
it goes up to the parent directory and looks for first an 
Application.cfc and then an Application.cfm file.  It contiues this 
search up the directory tree until it finds either an Application.cfc 
file or an Application.cfm file or reaches the *file* root directory.  
Note this can be above the web root.

If your two applications are in separate and distinct directory 
structures and these directory trees have separate Application files 
then the applications will be independent.

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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321662
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: 2 applications on one server

2009-04-16 Thread Dave Watts

> each one of the applications should be totally seperate but how does 
> coldfusion know
> which application.cfc to use and how come they dont conflict with each other?

When you run a CF file, CF looks within the directory of that file for
Application.cfc or Application.cfm. If it doesn't find either, it
looks in the parent directory, and so on until it finds one of those
files or it reaches the root of the drive.

So, if you want separate applications, you put them in separate directories.

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!

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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321659
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4