Re: refreshing application variables

2011-02-10 Thread Scott Brady

Of course, for people on shared hosting, production might be when you need
it most (because you can't restart CF).  But, then you should use some
additional factor (as Dave said).

Scott

On Wed, Feb 9, 2011 at 12:45 PM, Dave Watts dwa...@figleaf.com wrote:


  And I would recommend using a hard to guess url variable to fire off the
 app restart:
 
  ?hardToGuessVar=1
 
  Otherwise, hoodlums like Ray Camden will run around restarting your app
 100 times a day.   :)

 Better yet, use some additional factor to prevent or limit use in
 production. For example, you might have an administrative login
 required to use this, or you may simply have it not run in production.

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



-- 
-
Scott Brady
http://www.scottbrady.net/


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342090
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: refreshing application variables

2011-02-09 Thread Will Tomlinson

 How does one refresh application.cfc application variables without 
 restarting coldfusion services? Thanks in advance. 

And I would recommend using a hard to guess url variable to fire off the app 
restart:

?hardToGuessVar=1

Otherwise, hoodlums like Ray Camden will run around restarting your app 100 
times a day.   :)

Will 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342057
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: refreshing application variables

2011-02-09 Thread Dave Watts

 And I would recommend using a hard to guess url variable to fire off the app 
 restart:

 ?hardToGuessVar=1

 Otherwise, hoodlums like Ray Camden will run around restarting your app 100 
 times a day.   :)

Better yet, use some additional factor to prevent or limit use in
production. For example, you might have an administrative login
required to use this, or you may simply have it not run in production.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342063
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: refreshing application variables

2011-02-08 Thread Richard Steele

Got it! Thanks for all of the help! 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342016
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: refreshing application variables

2011-02-08 Thread Steve Bryant

Normally Dave Watts really knows his stuff, but I have to disagree with one of 
his suggestions. I definitely would NOT refresh an application by renaming it.

While this will work, I would think that would leave the old Application scope 
running on the server. This isn't something that the GC would know to come by 
and pick up as there are still variables referencing the data - there just 
aren't any pages using the variables.

The upshot of that is that all of the data stored in Application scope under 
the old Application name continues to exist after you have renamed the 
application - you have just created an entirely new copy of all of those 
application variables.

Do this a few times and you eventually have a lot of RAM tied up keeping track 
of variables that you aren't using at all.

Steve
  How does one refresh application.cfc application variables without 
 restarting coldfusion services? Thanks in advance.
 
 1. Rename your application. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342034
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: refreshing application variables

2011-02-08 Thread Dave Watts

 Normally Dave Watts really knows his stuff, but I have to disagree with one 
 of his suggestions. I definitely would NOT refresh an application by
 renaming it.

 While this will work, I would think that would leave the old Application 
 scope running on the server. This isn't something that the GC would know
 to come by and pick up as there are still variables referencing the data - 
 there just aren't any pages using the variables.

 The upshot of that is that all of the data stored in Application scope under 
 the old Application name continues to exist after you have renamed
 the application - you have just created an entirely new copy of all of those 
 application variables.

 Do this a few times and you eventually have a lot of RAM tied up keeping 
 track of variables that you aren't using at all.

Well, I was really just listing that for completeness. Those are the
two ways I know to accomplish the requested task. I prefer the second
approach usually, unless I'm really in a hurry I guess.

But the first option isn't really harmful to the server, especially in
the typical case when you'd do it - in development. The orphaned
application will go out of scope normally after the specified period
of inactivity.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342035
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


refreshing application variables

2011-02-07 Thread Richard Steele

How does one refresh application.cfc application variables without restarting 
coldfusion services? Thanks in advance. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341960
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: refreshing application variables

2011-02-07 Thread Justin Scott

 How does one refresh application.cfc application variables without
 restarting coldfusion services? Thanks in advance.

What do you mean by refreshing specifically?

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341961
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: refreshing application variables

2011-02-07 Thread Richard Steele

I've changed the code in application.cfc that creates application variables for 
error checking and I need to test it (without restarting coldfusion 8 
services). 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341963
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: refreshing application variables

2011-02-07 Thread Dave Watts

 How does one refresh application.cfc application variables without restarting 
 coldfusion services? Thanks in advance.

1. Rename your application.

2. Write some code you can trigger manually to explicitly call
onApplicationStart:

cffunction name=onRequestStart
 cfif structKeyExists(url, init)
  cfset onApplicationStart() !--- not single-threaded if
you do this ---
 /cfif
/cffunction

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341964
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: refreshing application variables

2011-02-07 Thread Sean Corfield

Call applicationStop() - assuming you're on ColdFusion 9 - that will
cause the application to be restarted on the next request, running
onApplicationStart() etc.

On Mon, Feb 7, 2011 at 5:57 PM, Richard  Steele r...@photoeye.com wrote:
 How does one refresh application.cfc application variables without restarting 
 coldfusion services? Thanks in advance.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341965
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: refreshing application variables

2011-02-07 Thread Raymond Camden

When I do this, I typically also do a cflocation right after to reload
it for me. So I'll go to ?reinit=1 and get relocated back to ? after
the applicationStop() call.

(Hopefully that made sense.)


On Mon, Feb 7, 2011 at 8:43 PM, Sean Corfield seancorfi...@gmail.com wrote:

 Call applicationStop() - assuming you're on ColdFusion 9 - that will
 cause the application to be restarted on the next request, running
 onApplicationStart() etc.

 On Mon, Feb 7, 2011 at 5:57 PM, Richard  Steele r...@photoeye.com wrote:
 How does one refresh application.cfc application variables without 
 restarting coldfusion services? Thanks in advance.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341966
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


application variables and a clustered enviroment

2010-08-09 Thread Chad McCue

My company has two servers each having enterprise level coldfusion 
administrator installed on it. My site has code that will handle various 
counters based on user activity via application variables, I will have a main 
admin login that will be able to process these application variables and view 
hit counters.

My question is if my admin is logged in on server 1, how can I access the 
numbers saved in the application variables by users that are on server 2 to 
combine with the numbers from application variables on server 1? 

Is it possible to use server variables with the ability to reference them from 
either server based on the servers IP?

I am trying to do this without having to save the information in a DB table so 
I don't have to handle adding and removing based on session timeout issues, 
this data has to be as real time as possible. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336118
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: application variables and a clustered enviroment

2010-08-09 Thread James Holmes

You'll need a webservice or another remote method of supplying the
data to the other server.

--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/



On 9 August 2010 22:08, Chad McCue ch...@icsciences.com wrote:

 My company has two servers each having enterprise level coldfusion 
 administrator installed on it. My site has code that will handle various 
 counters based on user activity via application variables, I will have a main 
 admin login that will be able to process these application variables and view 
 hit counters.

 My question is if my admin is logged in on server 1, how can I access the 
 numbers saved in the application variables by users that are on server 2 to 
 combine with the numbers from application variables on server 1?

 Is it possible to use server variables with the ability to reference them 
 from either server based on the servers IP?

 I am trying to do this without having to save the information in a DB table 
 so I don't have to handle adding and removing based on session timeout 
 issues, this data has to be as real time as possible.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336119
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Strange application variables behavior with flash remoting

2008-12-09 Thread David Wilson
We're running two similar structured sites on IIS6 and CF8 with similar flex 
apps using flash remoting. 

Where the source of a flash remote object is the same for both sites ie)  
source=app.User  the CFCs get their application variables jumbled up. Which 
ever was called first sets for both.
However the application name for both is different and cfdumping the 
application variables gives you the separate values as expected.

We can easily fix this by putting the cfcs in different folders however I'd 
like to understand why this is happening?

THanks





~|
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:316485
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Strange application variables behavior with flash remoting

2008-12-09 Thread AJ Mercer
something very similar to this happened to me last week and Fritz Dimmel put
me onto this which fixed the problem

in CFIDE, go to Cache and uncheck
Cache web server paths


2008/12/10 David Wilson [EMAIL PROTECTED]

 We're running two similar structured sites on IIS6 and CF8 with similar
 flex apps using flash remoting.

 Where the source of a flash remote object is the same for both sites ie)
  source=app.User  the CFCs get their application variables jumbled up.
 Which ever was called first sets for both.
 However the application name for both is different and cfdumping the
 application variables gives you the separate values as expected.

 We can easily fix this by putting the cfcs in different folders however I'd
 like to understand why this is happening?

 THanks





 

~|
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:316537
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Accessing Session and Application variables from another app

2008-08-18 Thread Andy Matthews
For reasons I won't go into, we have one directory in our main application 
which has it's own application scope. Is there any way for this sub-application 
to access session and application variables from the main app?

Things that I've thought of:
- A simple CF page which outputs the variables needed to the page. Then this 
page can be hit via HTTP request.

Things I've tried
- A CFC in the root which returns the variables requested

I can't include, or reference the root app, so that option is out. Any other 
things that I can try? 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311225
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Accessing Session and Application variables from another app

2008-08-18 Thread Dave Phillips
Couldn't you create a CFC in your main app that will return a value of a
variable, something like this:

cffunction name=getVar
  cfargument name=scope
  cfargument name=varname
  cfreturn #arguments.scope#.#arguments.varname# /
/cffunction

Expose the CFC to public and use CFINVOKE from your 'child' app.

You could also access it with cfhttp if you would rather do that.

Similar to your solution below, but more secure as it doesn't just dump all
the variables - you have to know the name of it to get the value.

You might want to add some error checking in case the varname or scope
passed doesn't exist.

In your 'child' app, you could set up a process that grabs those values and
populates your application and session scope in the child app automatically
on each request.

Not pretty, but it should work.

Dave

-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 18, 2008 4:14 PM
To: CF-Talk
Subject: Accessing Session and Application variables from another app

For reasons I won't go into, we have one directory in our main application
which has it's own application scope. Is there any way for this
sub-application to access session and application variables from the main
app?

Things that I've thought of:
- A simple CF page which outputs the variables needed to the page. Then this
page can be hit via HTTP request.

Things I've tried
- A CFC in the root which returns the variables requested

I can't include, or reference the root app, so that option is out. Any other
things that I can try? 


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311227
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Accessing Session and Application variables from another app

2008-08-18 Thread Barney Boisvert
You can use the CFAPPLICATION tag to temporarily change the
application you're executing as part of.  Highly hacky and rarely
recommended, but it should work.

cheers,
barneyb

On Mon, Aug 18, 2008 at 2:13 PM, Andy Matthews [EMAIL PROTECTED] wrote:
 For reasons I won't go into, we have one directory in our main application 
 which has it's own application scope. Is there any way for this 
 sub-application to access session and application variables from the main app?

 Things that I've thought of:
 - A simple CF page which outputs the variables needed to the page. Then this 
 page can be hit via HTTP request.

 Things I've tried
 - A CFC in the root which returns the variables requested

 I can't include, or reference the root app, so that option is out. Any other 
 things that I can try?

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311228
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Accessing Session and Application variables from another app

2008-08-18 Thread Mark Kruger
Andy,

Sure...make sure this.name is the same in both apps.. ... But make sure
they don't have different app scoped variables or one will overwrite the
other.

-mark
 


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

-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 18, 2008 4:14 PM
To: CF-Talk
Subject: Accessing Session and Application variables from another app

For reasons I won't go into, we have one directory in our main application
which has it's own application scope. Is there any way for this
sub-application to access session and application variables from the main
app?

Things that I've thought of:
- A simple CF page which outputs the variables needed to the page. Then this
page can be hit via HTTP request.

Things I've tried
- A CFC in the root which returns the variables requested

I can't include, or reference the root app, so that option is out. Any other
things that I can try? 



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311229
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Accessing Session and Application variables from another app

2008-08-18 Thread Dave Phillips
Sorry Andy, I didn't read your whole message.  It appears you already tried
this.



-Original Message-
From: Dave Phillips [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 18, 2008 4:21 PM
To: CF-Talk
Subject: RE: Accessing Session and Application variables from another app

Couldn't you create a CFC in your main app that will return a value of a
variable, something like this:

cffunction name=getVar
  cfargument name=scope
  cfargument name=varname
  cfreturn #arguments.scope#.#arguments.varname# /
/cffunction

Expose the CFC to public and use CFINVOKE from your 'child' app.

You could also access it with cfhttp if you would rather do that.

Similar to your solution below, but more secure as it doesn't just dump all
the variables - you have to know the name of it to get the value.

You might want to add some error checking in case the varname or scope
passed doesn't exist.

In your 'child' app, you could set up a process that grabs those values and
populates your application and session scope in the child app automatically
on each request.

Not pretty, but it should work.

Dave



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311230
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: reinit application variables

2008-02-26 Thread Justin T
 How do you reset application variables?
 
 
 I am using application.cfc to set some application variables and cant 
 figure out how to reset them so they reload with different data.
 
 
 Thanks,
Chad

OnApplicationStart() doesn't seem to always work for me. I don't think it 
clears the scopecache or some other settings.

I want something that will basically restart the server! 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299917
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: reinit application variables

2008-02-26 Thread Dave Watts
 OnApplicationStart() doesn't seem to always work for me. I 
 don't think it clears the scopecache or some other settings.
 
 I want something that will basically restart the server! 

The onApplicationStart function doesn't clear the scope cache or anything
else by default. It does whatever you tell it to. If you want to destroy
existing Application variables and reinitialize them, you are responsible
for doing that yourself within the function body.

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

Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/

WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299927
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: reinit application variables

2008-02-17 Thread Ricardo Russon
Matt,

Is there any performance gain using structKeyExists(url, 'init') over
isdefined(url.init) ?
Is it a best pactice thing or your own preference?
Ric.


On Feb 17, 2008 7:48 AM, Matt Williams [EMAIL PROTECTED] wrote:

 On Feb 16, 2008 3:40 PM, Chad Gray [EMAIL PROTECTED] wrote:
  How do you reset application variables?
 
  I am using application.cfc to set some application variables and cant
 figure out how to reset them so they reload with different data.

 One way is to add this in onRequestStart:
 cfif structKeyExists(url, 'init') AND url.init EQ myInitPass
  cfset onApplicationStart() /
 /cfif

 Then you can reset them by adding init=myInitPass into the url.


 --
 Matt Williams
 It's the question that drives us.

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299238
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: reinit application variables

2008-02-17 Thread Matt Williams
On Feb 17, 2008 5:38 PM, Ricardo Russon [EMAIL PROTECTED] wrote:
 Matt,

 Is there any performance gain using structKeyExists(url, 'init') over
 isdefined(url.init) ?
 Is it a best pactice thing or your own preference?
 Ric.

structKeyExists is my preference. As whether or not there is a
performance gain, I'm sure others will be glad to debate. And it won't
be the first time.
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:33841#170108
http://www.google.com/search?q=structkeyexists+vs+isdefined

-- 
Matt Williams
It's the question that drives us.

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299241
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: reinit application variables

2008-02-17 Thread Mike Chabot
StructKeyExists is faster since it targets a specific variable scope
instead of incrementally searching though all scopes. You should use
structKeyExists unless you are searching for a variable that can be in
multiple scopes.

-Mike Chabot

On Feb 17, 2008 6:38 PM, Ricardo Russon [EMAIL PROTECTED] wrote:
 Matt,

 Is there any performance gain using structKeyExists(url, 'init') over
 isdefined(url.init) ?
 Is it a best pactice thing or your own preference?
 Ric.


 On Feb 17, 2008 7:48 AM, Matt Williams [EMAIL PROTECTED] wrote:

  On Feb 16, 2008 3:40 PM, Chad Gray [EMAIL PROTECTED] wrote:
   How do you reset application variables?
  
   I am using application.cfc to set some application variables and cant
  figure out how to reset them so they reload with different data.
 
  One way is to add this in onRequestStart:
  cfif structKeyExists(url, 'init') AND url.init EQ myInitPass
   cfset onApplicationStart() /
  /cfif
 
  Then you can reset them by adding init=myInitPass into the url.
 
 
  --
  Matt Williams
  It's the question that drives us.
 
 

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299242
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


reinit application variables

2008-02-16 Thread Chad Gray
How do you reset application variables?
 
I am using application.cfc to set some application variables and cant figure 
out how to reset them so they reload with different data.
 
Thanks,
Chad

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299210
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: reinit application variables

2008-02-16 Thread Matt Williams
On Feb 16, 2008 3:40 PM, Chad Gray [EMAIL PROTECTED] wrote:
 How do you reset application variables?

 I am using application.cfc to set some application variables and cant figure 
 out how to reset them so they reload with different data.

One way is to add this in onRequestStart:
cfif structKeyExists(url, 'init') AND url.init EQ myInitPass
  cfset onApplicationStart() /
/cfif

Then you can reset them by adding init=myInitPass into the url.


-- 
Matt Williams
It's the question that drives us.

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299211
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Chicken or Egg? Config File to Set Application Variables

2007-07-27 Thread James Holmes
You can't use cffile to read the config file?

On 7/27/07, Michael Dawson [EMAIL PROTECTED] wrote:
 For some reason, this post didn't make it through the mail system.

 I have structured my web site (CF8) so that my config settings are
 outside of the web root such as this:
 
 C:\Components
 C:\Config
 C:\CustomTags
 C:\WebSite
 
 I'm building the site at: http://acelinktest.evansville.edu/ and will
 publish it to http://acelink.evansville.edu/.
 
 With the exception of the C:\Config folder, all other folders will be
 published to the production site.  The contents of the C:\Config folder
 will contain site-specific information such as the site name
 AceLinkTest vs AceLink and different values for session and
 application timeouts.  (The test site will have shorter timeouts.)
 
 Now, I'm building the Application.cfc and can't figure out the best way
 to set the Application variables such as:
 
 this.name = #appName#;
 this.sessionTimeout = #sessionTimeout#;
 this.mappings[CustomTags] = #customTagsServerPath#;
 
 I want to use either an Include or Component (not wanting to argue which
 is better), but I can't include a config.cfm file if it's outside the
 web root since the mapping is not yet created.  I can't create the
 mapping because I can't read the config.cfm file that is outside the web
 root.
 
 I want to keep the web site as dynamic as possible, regarding server
 paths and URLs, and also keep a separate directory for my site
 configuration.  However, where do I get that first bit of information
 that ties it all together?

-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284685
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Chicken or Egg? Config File to Set Application Variables

2007-07-27 Thread Michael Dawson
I can use relative references, however, there appears to be a bug in CF8 that 
won't allow you include a file in the Application.cfc's constructor area.  
Well, that's not entirely correct.  You can include a file, however, you can't 
refer to any variables within that included file.  That makes it pretty useless.

What I want to do is very basic:

I want an Application.cfc that is exactly the same for development, testing and 
production.  I want that Application.cfc to get its settings from a Config file 
that is unique to each site (development, testing and production).

Here is a requirement:

I want to dynamically set the sessionTimeout and applicationTimeout variables 
in the THIS scope.  I want to pull these values from a config file located 
anywhere on the server (under the web root or outside of it).

Theoretically, it should work like this:

Config.cfm
--
cfset variables.constants.sessionTimeout = createTimeSpan(0,0,1,0)
cfset variables.constants.applicationTimeout = createTimeSpan(0,0,2,0)


Application.cfc
---
cfcomponent

cfinclude template=../Config/Config.cfm

cfset this.sessionTimeout = variables.constants.sessionTimeout
cfset this.applicationTimeout = variables.constants.applicationTimeout

/cfcomponent


When running this simple code, the CFINCLUDE tag does not throw an error, 
however, you can't refer to the variables set within the included file.

I would just like a solution to this simple problem.

Thanks
M!ke

 I have structured my web site (CF8) so that my config 

Use a relative reference to get to the parent directory or to siblings, etc.
Obviously, something will have to be hard-coded - the relative location of
the config file, or perhaps the name of the config file if you wanted to
mimic the behavior of CF when it's looking for Application.cfc/cfm.

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284689
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Chicken or Egg? Config File to Set Application Variables

2007-07-27 Thread Brian Kotek
You could also place your config settings in an ANT properties file, and use
ANT to deploy the site. You can then tell ANT to substitue the specified
values into your code as part of the deployment.

On 7/26/07, Dave Watts [EMAIL PROTECTED] wrote:

  I have structured my web site (CF8) so that my config
  settings are outside of the web root such as this:
 
  C:\Components
  C:\Config
  C:\CustomTags
  C:\WebSite
 
  I'm building the site at: http://acelinktest.evansville.edu/
  and will publish it to http://acelink.evansville.edu/.
 
  With the exception of the C:\Config folder, all other folders
  will be published to the production site.  The contents of
  the C:\Config folder will contain site-specific information
  such as the site name AceLinkTest vs AceLink and
  different values for session and application timeouts.  (The
  test site will have shorter timeouts.)
 
  Now, I'm building the Application.cfc and can't figure out
  the best way to set the Application variables such as:
 
  this.name = #appName#;
  this.sessionTimeout = #sessionTimeout#;
  this.mappings[CustomTags] = #customTagsServerPath#;
 
  I want to use either an Include or Component (not wanting to
  argue which is better), but I can't include a config.cfm file
  if it's outside the web root since the mapping is not yet
  created.  I can't create the mapping because I can't read the
  config.cfm file that is outside the web root.
 
  I want to keep the web site as dynamic as possible, regarding
  server paths and URLs, and also keep a separate directory for
  my site configuration.  However, where do I get that first
  bit of information that ties it all together?

 Use a relative reference to get to the parent directory or to siblings,
 etc.
 Obviously, something will have to be hard-coded - the relative location of
 the config file, or perhaps the name of the config file if you wanted to
 mimic the behavior of CF when it's looking for Application.cfc/cfm.

 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!

 This email has been processed by SmoothZap - www.smoothwall.net


 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284687
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Chicken or Egg? Config File to Set Application Variables

2007-07-27 Thread Michael Dawson
I can use relative references, however, there appears to be a bug in CF8 that 
won't allow you include a file in the Application.cfc's constructor area.  
Well, that's not entirely correct.  You can include a file, however, you can't 
refer to any variables within that included file.  That makes it pretty useless.

What I want to do is very basic:

I want an Application.cfc that is exactly the same for development, testing and 
production.  I want that Application.cfc to get its settings from a Config file 
that is unique to each site (development, testing and production).

Here is a requirement:

I want to dynamically set the sessionTimeout and applicationTimeout variables 
in the THIS scope.  I want to pull these values from a config file located 
anywhere on the server (under the web root or outside of it).

Theoretically, it should work like this:

Config.cfm
--
cfset variables.constants.sessionTimeout = createTimeSpan(0,0,1,0)
cfset variables.constants.applicationTimeout = createTimeSpan(0,0,2,0)


Application.cfc
---
cfcomponent

cfinclude template=../Config/Config.cfm

cfset this.sessionTimeout = variables.constants.sessionTimeout
cfset this.applicationTimeout = variables.constants.applicationTimeout

/cfcomponent


When running this simple code, the CFINCLUDE tag does not throw an error, 
however, you can't refer to the variables set within the included file.

I would just like a solution to this simple problem.

Thanks
M!ke

 I have structured my web site (CF8) so that my config 

Use a relative reference to get to the parent directory or to siblings, etc.
Obviously, something will have to be hard-coded - the relative location of
the config file, or perhaps the name of the config file if you wanted to
mimic the behavior of CF when it's looking for Application.cfc/cfm.

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284690
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Chicken or Egg? Config File to Set Application Variables

2007-07-27 Thread Brian Kotek
When I test this I can reference the variables in the included file as long
as the included file's variables don't specify the variables scope (which I
assume forces them to be local to the included template). So just do:

Config.cfm
--
cfset constants.sessionTimeout = createTimeSpan(0,0,1,0)
cfset constants.applicationTimeout = createTimeSpan(0,0,2,0)

And reference them as variables.constants.sessionTimeout in the
Application.cfc.


On 7/26/07, Michael Dawson [EMAIL PROTECTED] wrote:

 I can use relative references, however, there appears to be a bug in CF8
 that won't allow you include a file in the Application.cfc's constructor
 area.  Well, that's not entirely correct.  You can include a file, however,
 you can't refer to any variables within that included file.  That makes it
 pretty useless.

 What I want to do is very basic:

 I want an Application.cfc that is exactly the same for development,
 testing and production.  I want that Application.cfc to get its settings
 from a Config file that is unique to each site (development, testing and
 production).

 Here is a requirement:

 I want to dynamically set the sessionTimeout and applicationTimeout
 variables in the THIS scope.  I want to pull these values from a config file
 located anywhere on the server (under the web root or outside of it).

 Theoretically, it should work like this:

 Config.cfm
 --
 cfset variables.constants.sessionTimeout = createTimeSpan(0,0,1,0)
 cfset variables.constants.applicationTimeout = createTimeSpan(0,0,2,0)


 Application.cfc
 ---
 cfcomponent

 cfinclude template=../Config/Config.cfm

 cfset this.sessionTimeout = variables.constants.sessionTimeout
 cfset this.applicationTimeout =
 variables.constants.applicationTimeout

 /cfcomponent


 When running this simple code, the CFINCLUDE tag does not throw an error,
 however, you can't refer to the variables set within the included file.

 I would just like a solution to this simple problem.

 Thanks
 M!ke

  I have structured my web site (CF8) so that my config
 
 Use a relative reference to get to the parent directory or to siblings,
 etc.
 Obviously, something will have to be hard-coded - the relative location
 of
 the config file, or perhaps the name of the config file if you wanted to
 mimic the behavior of CF when it's looking for Application.cfc/cfm.

 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284695
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Chicken or Egg? Config File to Set Application Variables

2007-07-27 Thread Dave Watts
 I can use relative references, however, there appears to be a 
 bug in CF8 that won't allow you include a file in the 
 Application.cfc's constructor area.  Well, that's not 
 entirely correct.  You can include a file, however, you can't 
 refer to any variables within that included file.  That makes 
 it pretty useless.

Can't you do this onApplicationStart? You shouldn't need the variables until
then anyway.

 Here is a requirement:
 
 I want to dynamically set the sessionTimeout and 
 applicationTimeout variables in the THIS scope.  I want to 
 pull these values from a config file located anywhere on the 
 server (under the web root or outside of it).

I haven't tried this, but I don't see why you can't set those from within
onApplicationStart.

 Theoretically, it should work like this:
 
 Config.cfm
 --
 cfset variables.constants.sessionTimeout = 
 createTimeSpan(0,0,1,0) cfset 
 variables.constants.applicationTimeout = createTimeSpan(0,0,2,0)
 
 
 Application.cfc
 ---
 cfcomponent
 
 cfinclude template=../Config/Config.cfm
 
 cfset this.sessionTimeout = variables.constants.sessionTimeout
 cfset this.applicationTimeout = 
 variables.constants.applicationTimeout
 
 /cfcomponent
 
 
 When running this simple code, the CFINCLUDE tag does not 
 throw an error, however, you can't refer to the variables set 
 within the included file.
 
 I would just like a solution to this simple problem.

How about if you omit variables.constants? If that doesn't work, how about
specifying the createTimeSpan arguments as variables within your include
file, then using them within createTimeSpan calls in your Application.cfc?

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!

This email has been processed by SmoothZap - www.smoothwall.net


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284716
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Chicken or Egg? Config File to Set Application Variables

2007-07-27 Thread Dawson, Michael
Brian, good idea.  I'll give that a shot.  I assumed that putting them
in the VARIABLES scope would have ensured they were visible inside any
other page that included them.  App.cfc must not follow that rule.

M!ke 

-Original Message-
From: Brian Kotek [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 27, 2007 12:07 AM
To: CF-Talk
Subject: Re: Chicken or Egg? Config File to Set Application Variables

When I test this I can reference the variables in the included file as
long as the included file's variables don't specify the variables scope
(which I assume forces them to be local to the included template). So
just do:

Config.cfm
--
cfset constants.sessionTimeout = createTimeSpan(0,0,1,0) cfset
constants.applicationTimeout = createTimeSpan(0,0,2,0)

And reference them as variables.constants.sessionTimeout in the
Application.cfc.


On 7/26/07, Michael Dawson [EMAIL PROTECTED] wrote:

 I can use relative references, however, there appears to be a bug in 
 CF8 that won't allow you include a file in the Application.cfc's
constructor
 area.  Well, that's not entirely correct.  You can include a file, 
 however, you can't refer to any variables within that included file.  
 That makes it pretty useless.

 What I want to do is very basic:

 I want an Application.cfc that is exactly the same for development, 
 testing and production.  I want that Application.cfc to get its 
 settings from a Config file that is unique to each site (development, 
 testing and production).

 Here is a requirement:

 I want to dynamically set the sessionTimeout and applicationTimeout 
 variables in the THIS scope.  I want to pull these values from a 
 config file located anywhere on the server (under the web root or
outside of it).

 Theoretically, it should work like this:

 Config.cfm
 --
 cfset variables.constants.sessionTimeout = createTimeSpan(0,0,1,0) 
 cfset variables.constants.applicationTimeout = 
 createTimeSpan(0,0,2,0)


 Application.cfc
 ---
 cfcomponent

 cfinclude template=../Config/Config.cfm

 cfset this.sessionTimeout = variables.constants.sessionTimeout
 cfset this.applicationTimeout =
 variables.constants.applicationTimeout

 /cfcomponent


 When running this simple code, the CFINCLUDE tag does not throw an 
 error, however, you can't refer to the variables set within the
included file.

 I would just like a solution to this simple problem.

 Thanks
 M!ke

  I have structured my web site (CF8) so that my config
 
 Use a relative reference to get to the parent directory or to 
 siblings,
 etc.
 Obviously, something will have to be hard-coded - the relative 
 location
 of
 the config file, or perhaps the name of the config file if you wanted

 to mimic the behavior of CF when it's looking for
Application.cfc/cfm.

 



~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284723
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Chicken or Egg? Config File to Set Application Variables

2007-07-26 Thread Dawson, Michael
I have structured my web site (CF8) so that my config settings are
outside of the web root such as this:
 
C:\Components
C:\Config
C:\CustomTags
C:\WebSite
 
I'm building the site at: http://acelinktest.evansville.edu/ and will
publish it to http://acelink.evansville.edu/.
 
With the exception of the C:\Config folder, all other folders will be
published to the production site.  The contents of the C:\Config folder
will contain site-specific information such as the site name
AceLinkTest vs AceLink and different values for session and
application timeouts.  (The test site will have shorter timeouts.)
 
Now, I'm building the Application.cfc and can't figure out the best way
to set the Application variables such as:
 
this.name = #appName#;
this.sessionTimeout = #sessionTimeout#;
this.mappings[CustomTags] = #customTagsServerPath#;
 
I want to use either an Include or Component (not wanting to argue which
is better), but I can't include a config.cfm file if it's outside the
web root since the mapping is not yet created.  I can't create the
mapping because I can't read the config.cfm file that is outside the web
root.
 
I want to keep the web site as dynamic as possible, regarding server
paths and URLs, and also keep a separate directory for my site
configuration.  However, where do I get that first bit of information
that ties it all together?
 
Thanks


~|
ColdFusion 8 beta - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284654
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Chicken or Egg? Config File to Set Application Variables

2007-07-26 Thread Dave Watts
 I have structured my web site (CF8) so that my config 
 settings are outside of the web root such as this:
  
 C:\Components
 C:\Config
 C:\CustomTags
 C:\WebSite
  
 I'm building the site at: http://acelinktest.evansville.edu/ 
 and will publish it to http://acelink.evansville.edu/.
  
 With the exception of the C:\Config folder, all other folders 
 will be published to the production site.  The contents of 
 the C:\Config folder will contain site-specific information 
 such as the site name AceLinkTest vs AceLink and 
 different values for session and application timeouts.  (The 
 test site will have shorter timeouts.)
  
 Now, I'm building the Application.cfc and can't figure out 
 the best way to set the Application variables such as:
  
 this.name = #appName#;
 this.sessionTimeout = #sessionTimeout#;
 this.mappings[CustomTags] = #customTagsServerPath#;
  
 I want to use either an Include or Component (not wanting to 
 argue which is better), but I can't include a config.cfm file 
 if it's outside the web root since the mapping is not yet 
 created.  I can't create the mapping because I can't read the 
 config.cfm file that is outside the web root.
  
 I want to keep the web site as dynamic as possible, regarding 
 server paths and URLs, and also keep a separate directory for 
 my site configuration.  However, where do I get that first 
 bit of information that ties it all together?

Use a relative reference to get to the parent directory or to siblings, etc.
Obviously, something will have to be hard-coded - the relative location of
the config file, or perhaps the name of the config file if you wanted to
mimic the behavior of CF when it's looking for Application.cfc/cfm.

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!

This email has been processed by SmoothZap - www.smoothwall.net


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284681
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Chicken or Egg? Config File to Set Application Variables

2007-07-26 Thread Michael Dawson
For some reason, this post didn't make it through the mail system.

I have structured my web site (CF8) so that my config settings are
outside of the web root such as this:
 
C:\Components
C:\Config
C:\CustomTags
C:\WebSite
 
I'm building the site at: http://acelinktest.evansville.edu/ and will
publish it to http://acelink.evansville.edu/.
 
With the exception of the C:\Config folder, all other folders will be
published to the production site.  The contents of the C:\Config folder
will contain site-specific information such as the site name
AceLinkTest vs AceLink and different values for session and
application timeouts.  (The test site will have shorter timeouts.)
 
Now, I'm building the Application.cfc and can't figure out the best way
to set the Application variables such as:
 
this.name = #appName#;
this.sessionTimeout = #sessionTimeout#;
this.mappings[CustomTags] = #customTagsServerPath#;
 
I want to use either an Include or Component (not wanting to argue which
is better), but I can't include a config.cfm file if it's outside the
web root since the mapping is not yet created.  I can't create the
mapping because I can't read the config.cfm file that is outside the web
root.
 
I want to keep the web site as dynamic as possible, regarding server
paths and URLs, and also keep a separate directory for my site
configuration.  However, where do I get that first bit of information
that ties it all together?
 
Thanks

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284672
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Chicken or Egg? Config File to Set Application Variables

2007-07-26 Thread Michael Dawson
For some reason, this message isn't getting through the system.

Is anyone else seeing this post?

M!ke

I have structured my web site (CF8) so that my config settings are
outside of the web root such as this:
 
C:\Components
C:\Config
C:\CustomTags
C:\WebSite
 
I'm building the site at: http://acelinktest.evansville.edu/ and will
publish it to http://acelink.evansville.edu/.
 
With the exception of the C:\Config folder, all other folders will be
published to the production site.  The contents of the C:\Config folder
will contain site-specific information such as the site name
AceLinkTest vs AceLink and different values for session and
application timeouts.  (The test site will have shorter timeouts.)
 
Now, I'm building the Application.cfc and can't figure out the best way
to set the Application variables such as:
 
this.name = #appName#;
this.sessionTimeout = #sessionTimeout#;
this.mappings[CustomTags] = #customTagsServerPath#;
 
I want to use either an Include or Component (not wanting to argue which
is better), but I can't include a config.cfm file if it's outside the
web root since the mapping is not yet created.  I can't create the
mapping because I can't read the config.cfm file that is outside the web
root.
 
I want to keep the web site as dynamic as possible, regarding server
paths and URLs, and also keep a separate directory for my site
configuration.  However, where do I get that first bit of information
that ties it all together?
 
Thanks

~|
ColdFusion 8 beta - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284669
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Accessing application variables between 2 different applications?

2006-08-21 Thread kola.oyedeji
I agree with James the simplest way would be to give both applications the
same name in the cfapplication, tag they would then both have access to the
same shared scope variables.

 -Original Message-
 From: James Holmes [mailto:[EMAIL PROTECTED]
 Sent: 19 August 2006 14:12
 To: CF-Talk
 Subject: Re: Accessing application variables between 2 different
applications?
 
 Why not just use one application name and use roles to separate out
 the functions?
 
 On 8/19/06, Andy Mcshane [EMAIL PROTECTED] wrote:
  I have 2 apps running on the same server, one of the apps is an admin
center for
 inputting data to be displayed from within the second app. What I want to
be able to
 do is track exactly who is logged on and where in the second app they are
and display
 this information from within my admin app. Hence the cross application
issue. Does
 this make sense?
 
 
 
 ~
 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250449
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Accessing application variables between 2 different applications?

2006-08-21 Thread Douglas Knudsen
besides all the above/below suggestions.  There are times you may want to do
this.  We have a server wide SSO setup that does this by having one
cfapplication called MAIN and every other application having cfapplication
names that differ.  The way to access both is to use two cfapplication
tags.  I wouldn't suggest to use this all over a application though, maybe
just in a couple places to grab the data and run.

DK

On 8/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:

 I agree with James the simplest way would be to give both applications the
 same name in the cfapplication, tag they would then both have access to
 the
 same shared scope variables.

  -Original Message-
  From: James Holmes [mailto:[EMAIL PROTECTED]
  Sent: 19 August 2006 14:12
  To: CF-Talk
  Subject: Re: Accessing application variables between 2 different
 applications?
 
  Why not just use one application name and use roles to separate out
  the functions?
 
  On 8/19/06, Andy Mcshane [EMAIL PROTECTED] wrote:
   I have 2 apps running on the same server, one of the apps is an admin
 center for
  inputting data to be displayed from within the second app. What I want
 to
 be able to
  do is track exactly who is logged on and where in the second app they
 are
 and display
  this information from within my admin app. Hence the cross application
 issue. Does
  this make sense?
  
  
 
  ~
 

 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250454
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Accessing application variables between 2 different applications?

2006-08-19 Thread Andy Mcshane
Not really but I did not want the additional overhead of making round trips to 
the database. I think in this instance I will use the server scope. Thanks for 
all the help everyone.



From: Mary Jo Sminkey [mailto:[EMAIL PROTECTED]
Sent: Fri 18/08/2006 17:37
To: CF-Talk
Subject: Re: Accessing application variables between 2 different applications?



 I have 2 apps running on the same server, one of the apps is an admin
 center for inputting data to be displayed from within the second app.
 What I want to be able to do is track exactly who is logged on and
 where in the second app they are and display this information from
 within my admin app. Hence the cross application issue. Does this make
sense?

Hhm, is there some reason you can't just keep the data in a database table 
accessible to both applications?




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250373
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Accessing application variables between 2 different applications?

2006-08-19 Thread James Holmes
Why not just use one application name and use roles to separate out
the functions?

On 8/19/06, Andy Mcshane [EMAIL PROTECTED] wrote:
 I have 2 apps running on the same server, one of the apps is an admin center 
 for inputting data to be displayed from within the second app. What I want to 
 be able to do is track exactly who is logged on and where in the second app 
 they are and display this information from within my admin app. Hence the 
 cross application issue. Does this make sense?

 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250377
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Accessing application variables between 2 different applications?

2006-08-18 Thread Andy Mcshane
I have 2 apps running on the same server, one of the apps is an admin center 
for inputting data to be displayed from within the second app. What I want to 
be able to do is track exactly who is logged on and where in the second app 
they are and display this information from within my admin app. Hence the cross 
application issue. Does this make sense?

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250303
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Accessing application variables between 2 different applications?

2006-08-18 Thread Ian Skinner
One of many ways you could do this is by writing and reading the data from the 
server scope.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250304
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Accessing application variables between 2 different applications?

2006-08-18 Thread Mary Jo Sminkey
 I have 2 apps running on the same server, one of the apps is an admin 
 center for inputting data to be displayed from within the second app. 
 What I want to be able to do is track exactly who is logged on and 
 where in the second app they are and display this information from 
 within my admin app. Hence the cross application issue. Does this make 
sense?

Hhm, is there some reason you can't just keep the data in a database table 
accessible to both applications? 


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250305
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Accessing application variables between 2 different applications?

2006-08-16 Thread Denny Valliant
Yeah, it's probably doable; reasons for not doing it include lack of power
(createobject) and use of undocumented, and thus changeable, methods.

But if you can grab session vars from various sessions (you can), I'm
betting you can grab app vars as well.

I can dig up the get at session vars code, but IIRC, Snake has it blogged
somewhere, and it has comments, unlike my code.
:Den

On 8/15/06, Andy Mcshane [EMAIL PROTECTED] wrote:

 I know this is probably a stupid question, as it most likely has security
 inplications, but I have 2 applications running on the same server and I was
 wondering if it is possible to access an application variables in one
 application from the other application, is this possible and if it is what
 would be the reasons against doing such a thing?

 

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250079
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Accessing application variables between 2 different applications?

2006-08-16 Thread Alan Rother
Let me ask the next logical question, these variables you want to access...
Are they dynamic in some way, or are you looking to simplify updating a
large number of static variables?

If you are looking to just share a large group of static variables you can
simply create an external file that gets included in both application.cfms.
This include file would contain the set code for all of those variables and
you would then have all of the same variables and values in each
application. Keep in mind this method would not actually allow you to share
the variables, but rather mirror them.

HTH

=]

-- 
Alan Rother
Macromedia Certified Advanced ColdFusion MX 7 Developer


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:250082
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Accessing application variables between 2 different applications?

2006-08-15 Thread Andy Mcshane
I know this is probably a stupid question, as it most likely has security 
inplications, but I have 2 applications running on the same server and I was 
wondering if it is possible to access an application variables in one 
application from the other application, is this possible and if it is what 
would be the reasons against doing such a thing?

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249855
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Accessing application variables between 2 different applications?

2006-08-15 Thread Ian Skinner
There are two ways this could be done, each with different implications.

If the applications have the same name in the cfapplicaiton... tag, they 
will share the same application scope, and basically be the same application.

You could also use the server scope which as accessible by all CFML running on 
the same server.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249856
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


application variables

2006-06-14 Thread Daniel Kessler
I'm doing something obviously wrong but can't seem to see it.

In my Application.cfm, I declare a variable and in a page, I use it.   
But it's not showing up.  The page at first displayed the  
information, but it's not doing so now.  I have a cfapplication tag  
in the Application file and it had a sessiontimeout, and when I  
removed the timeout, I stopped getting the var.  Putting it back in  
didn't seem to help.  BTW, I am putting this in the request scope and  
I was told to do that years ago, but I never knew why and just do it  
cause I was told.  What is the request scope?

Here's my code.

Application.cfm
cfapplication sessionmanagement=yes setclientcookies=yes  
name=career_expo clientmanagement=Yes  
sessiontimeout=#CreateTimeSpan(0,1,0,0)#

cfif NOT structKeyExists(session,'user')
cfset session.user = duplicate(variables.foo)
/cfif

cfset request.the_year = '2006'
cfset request.the_date = 'May 4'



Page Code:

span class=heading2#request.the_date#, 2006br
10 am - 1 pmbr/span



I'm just trying to put the information that I have displayed in  
several places into one place to make it easy to change.

thanks.
_

Daniel Kessler

College of Health and Human Performance
University of Maryland
Suite 2387 Valley Drive
College Park, MD  20742-2611
Phone: 301-405-2545
http://hhp.umd.edu




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


RE: application variables

2006-06-14 Thread Andy Matthews
Try changing the name of your App. It's most likely caching the application
variables as set up in the initial load of your app.cfm file. I've had that
happen to me before and changing the app name did it for me.

!//--
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Daniel Kessler [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 12:54 PM
To: CF-Talk
Subject: application variables


I'm doing something obviously wrong but can't seem to see it.

In my Application.cfm, I declare a variable and in a page, I use it.
But it's not showing up.  The page at first displayed the
information, but it's not doing so now.  I have a cfapplication tag
in the Application file and it had a sessiontimeout, and when I
removed the timeout, I stopped getting the var.  Putting it back in
didn't seem to help.  BTW, I am putting this in the request scope and
I was told to do that years ago, but I never knew why and just do it
cause I was told.  What is the request scope?

Here's my code.

Application.cfm
cfapplication sessionmanagement=yes setclientcookies=yes
name=career_expo clientmanagement=Yes
sessiontimeout=#CreateTimeSpan(0,1,0,0)#

cfif NOT structKeyExists(session,'user')
cfset session.user = duplicate(variables.foo)
/cfif

cfset request.the_year = '2006'
cfset request.the_date = 'May 4'



Page Code:

span class=heading2#request.the_date#, 2006br
10 am - 1 pmbr/span



I'm just trying to put the information that I have displayed in
several places into one place to make it easy to change.

thanks.


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


RE: application variables

2006-06-14 Thread Ben Nadel
Have you tried putting [] around the value... It might be there, just
empty??


...
Ben Nadel 
Web Developer
Nylon Technology
350 7th Avenue
Floor 10
New York, NY 10001
212.691.1134 x 14
212.691.3477 fax
www.nylontechnology.com
 
Some people call me the space cowboy. Some people call me the gangster of
love.

-Original Message-
From: Daniel Kessler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 14, 2006 1:54 PM
To: CF-Talk
Subject: application variables

I'm doing something obviously wrong but can't seem to see it.

In my Application.cfm, I declare a variable and in a page, I use it.   
But it's not showing up.  The page at first displayed the information, but
it's not doing so now.  I have a cfapplication tag in the Application file
and it had a sessiontimeout, and when I removed the timeout, I stopped
getting the var.  Putting it back in didn't seem to help.  BTW, I am putting
this in the request scope and I was told to do that years ago, but I never
knew why and just do it cause I was told.  What is the request scope?

Here's my code.

Application.cfm
cfapplication sessionmanagement=yes setclientcookies=yes  
name=career_expo clientmanagement=Yes  
sessiontimeout=#CreateTimeSpan(0,1,0,0)#

cfif NOT structKeyExists(session,'user')
cfset session.user = duplicate(variables.foo) /cfif

cfset request.the_year = '2006'
cfset request.the_date = 'May 4'



Page Code:

span class=heading2#request.the_date#, 2006br 10 am - 1 pmbr/span



I'm just trying to put the information that I have displayed in several
places into one place to make it easy to change.

thanks.
_

Daniel Kessler

College of Health and Human Performance
University of Maryland
Suite 2387 Valley Drive
College Park, MD  20742-2611
Phone: 301-405-2545
http://hhp.umd.edu






~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243528
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: application variables

2006-06-14 Thread daniel kessler
I tried that and I had the same response.
I know the variable has info, cause I set it in the application.cfm and it's 
only set there.  As I understand it, that runs first before the page.

Have you tried putting [] around the value... It might be there, just
empty??

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243532
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: application variables

2006-06-14 Thread daniel kessler
Try changing the name of your App. It's most likely caching the application
variables as set up in the initial load of your app.cfm file. I've had that
happen to me before and changing the app name did it for me.

I tried changing the app name and I still had the same response.  Restarting 
the browser didn't help.

I then launched a different browser and it also displayed the information 
correctly before I clicked refresh and then it gave me the same error.

sigh

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


Re: application variables

2006-06-14 Thread |Rens| 0
Have you used cfsilent /, cfcontent / or cfsetting 
enablecfoutputonly=true / perhaps? Did you use cfoutput / .. ?

What *does* it show? Nothing it all, or just not the contents of the 
variable?

Rens

daniel kessler wrote:
 Try changing the name of your App. It's most likely caching the application
 variables as set up in the initial load of your app.cfm file. I've had that
 happen to me before and changing the app name did it for me.
 
 I tried changing the app name and I still had the same response.  Restarting 
 the browser didn't help.
 
 I then launched a different browser and it also displayed the information 
 correctly before I clicked refresh and then it gave me the same error.
 
 sigh
 
 

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


Re: application variables

2006-06-14 Thread daniel kessler
I am using cfoutput.  I've not tried the others and in the past haven't needed 
them just to display a variable.
It gives the error:

Element THE_DATE is undefined in REQUEST.

Have you used cfsilent /, cfcontent / or cfsetting 
enablecfoutputonly=true / perhaps? Did you use cfoutput / .. ?

What *does* it show? Nothing it all, or just not the contents of the 
variable?

Rens

daniel kessler wrote:


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243538
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: application variables

2006-06-14 Thread daniel kessler
 Try changing the name of your App. It's most likely caching the 
 application
 variables as set up in the initial load of your app.cfm file. I've 
 had that
 happen to me before and changing the app name did it for me.

It does appear to be something like this though.  I went for a walk to think it 
through, came back and refreshed the page and it all worked fine.  I refreshed 
again and I received the error again: Element THE_DATE is undefined in REQUEST.

Here's the page:
http://hhp.umd.edu/studentservices/CareerExpo/blocks/dsp_ExpoIndex.cfm?fuseaction=expohome

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243539
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: application variables

2006-06-14 Thread |Rens| 0
Hmm .. can't do much without seeing your actual code, but maybe you 
'redefine' your request scope after your Application.cfm has been run. 
Something like

cfscript
   request = structNew();

   /* Or maybe this */
   structClear( request );
/cfscript

Would easily remove your properly set variable in the request scope.

But like I said: it's just a suggestion, and I can't really tell what's 
going on without seeing any code. I guess you'll have to do some 
hardcore debugging yourself, so good luck with that :)

Rens

daniel kessler wrote:
 Try changing the name of your App. It's most likely caching the 
 application
 variables as set up in the initial load of your app.cfm file. I've 
 had that
 happen to me before and changing the app name did it for me.
 
 It does appear to be something like this though.  I went for a walk to think 
 it through, came back and refreshed the page and it all worked fine.  I 
 refreshed again and I received the error again: Element THE_DATE is undefined 
 in REQUEST.
 
 Here's the page:
 http://hhp.umd.edu/studentservices/CareerExpo/blocks/dsp_ExpoIndex.cfm?fuseaction=expohome
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243540
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: application variables

2006-06-14 Thread daniel kessler
I don't do structNew, but I could.  I know you're not suggesting it, but then 
I'd at least know it's there.

I did show the actual code.  I pasted it into the first posting of this thread. 
 Not sure what else you would need to see.

Hmm .. can't do much without seeing your actual code, but maybe you 
'redefine' your request scope after your Application.cfm has been run. 
Something like

cfscript
   request = structNew();

   /* Or maybe this */
   structClear( request );
/cfscript


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


re: application variables

2006-06-14 Thread dave
maybe I missed something but that code doesnt have much to do with each 
other..
Just the request.the_date part.

Also why are you duplicating a session if it doesnt exist? Wouldn't it need to 
exist before you can duplicate it?

 
cfif NOT structKeyExists(session,'user')
 cfset session.user = duplicate(variables.foo)
/cfif

cfset request.the_year = '2006'
cfset request.the_date = 'May 4'



Page Code:

span class=heading2#request.the_date#, 2006br
10 am - 1 pmbr/span 

~Dave - formerly known as the disruptor~ 





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243544
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: application variables

2006-06-14 Thread dave
Do you have another Application.cfm nested in a closer directory?

~Dave - formerly known as the disruptor~ 


From: daniel kessler [EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 3:19 PM
To: CF-Talk cf-talk@houseoffusion.com
Subject: Re: application variables 

I am using cfoutput. I've not tried the others and in the past haven't needed 
them just to display a variable.
It gives the error:

Element THE_DATE is undefined in REQUEST.

Have you used ,  or 
enablecfoutputonly=true / perhaps? Did you use  .. ?

What *does* it show? Nothing it all, or just not the contents of the 
variable?

Rens

daniel kessler wrote:




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


Re: application variables

2006-06-14 Thread dave
 I did show the actual code. I pasted it into the first posting of this 
thread. Not sure what else you would need to see. 
The code you showed didnt have anything to do with each other, except the date 
part and if thats the only error then why not just put it on the page itself?

Or do a cfparam at the top with a default setting

~Dave - formerly known as the disruptor~ 





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


Re: application variables

2006-06-14 Thread daniel kessler
alright, it was an odd Dreamweaver problem/user error.
I had the file open and then realized it was in the above directory.  I then 
moved the file into an inner directory (without closing the old file and 
reopening it), then I adjusted the file and saved it.  It saved a new file to 
the above directory (instead of saving to the old file) and all editing went to 
that new file that I didn't expect it to make.

jeez

sorry for the confusion.

Hmm .. can't do much without seeing your actual code, but maybe you 
'redefine' your request scope after your Application.cfm has been run. 
Something like

cfscript
   request = structNew();

   /* Or maybe this */
   structClear( request );
/cfscript

Would easily remove your properly set variable in the request scope.

But like I said: it's just a suggestion, and I can't really tell what's 
going on without seeing any code. I guess you'll have to do some 
hardcore debugging yourself, so good luck with that :)

Rens

daniel kessler wrote:


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


Re: application variables

2006-06-14 Thread daniel kessler
alright, it was an odd Dreamweaver problem/user error.
I had the file open and then realized it was in the above directory.  I then 
moved the file into an inner directory (without closing the old file and 
reopening it), then I adjusted the file and saved it.  It saved a new file to 
the above directory (instead of saving to the old file) and all editing went to 
that new file that I didn't expect it to make.

jeez

sorry for the confusion.

Hmm .. can't do much without seeing your actual code, but maybe you 
'redefine' your request scope after your Application.cfm has been run. 
Something like

cfscript
   request = structNew();

   /* Or maybe this */
   structClear( request );
/cfscript

Would easily remove your properly set variable in the request scope.

But like I said: it's just a suggestion, and I can't really tell what's 
going on without seeing any code. I guess you'll have to do some 
hardcore debugging yourself, so good luck with that :)

Rens

daniel kessler wrote:


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243548
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


re: application variables

2006-06-14 Thread dave
you might try to chance this:
 cfset request.the_date = 'May 4'

to this

 cfset request.the_date = May 4

hey thats my bday:)

~Dave - formerly known as the disruptor~ 


From: dave [EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 3:51 PM
To: CF-Talk cf-talk@houseoffusion.com
Subject: re: application variables 

maybe I missed something but that code doesnt have much to do with each 
other..
Just the request.the_date part.

Also why are you duplicating a session if it doesnt exist? Wouldn't it need to 
exist before you can duplicate it?

 



Page Code:

#request.the_date#, 2006

10 am - 1 pm
 

~Dave - formerly known as the disruptor~ 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243549
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: application variables

2006-06-14 Thread Dawson, Michael
That wouldn't have happened if you were using Eclipse, right Dave?  ;-)

(I just had to say it.)

M!ke 

-Original Message-
From: daniel kessler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 14, 2006 2:56 PM
To: CF-Talk
Subject: Re: application variables

alright, it was an odd Dreamweaver problem/user error.
I had the file open and then realized it was in the above directory.  I
then moved the file into an inner directory (without closing the old
file and reopening it), then I adjusted the file and saved it.  It saved
a new file to the above directory (instead of saving to the old file)
and all editing went to that new file that I didn't expect it to make.

jeez

sorry for the confusion.

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


RE: application variables

2006-06-14 Thread dave
lol, no kidding AND you'da had to ftp it himself and made sure it was in right 
directory.

But hell, I still mostly use dw

~Dave - formerly known as the disruptor~ 


From: Dawson, Michael [EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 5:39 PM
To: CF-Talk cf-talk@houseoffusion.com
Subject: RE: application variables 

That wouldn't have happened if you were using Eclipse, right Dave? ;-)

(I just had to say it.)

M!ke 

-Original Message-
From: daniel kessler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 14, 2006 2:56 PM
To: CF-Talk
Subject: Re: application variables

alright, it was an odd Dreamweaver problem/user error.
I had the file open and then realized it was in the above directory. I
then moved the file into an inner directory (without closing the old
file and reopening it), then I adjusted the file and saved it. It saved
a new file to the above directory (instead of saving to the old file)
and all editing went to that new file that I didn't expect it to make.

jeez

sorry for the confusion.



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243555
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Losing Application Variables Randomly...

2006-05-10 Thread John Skrotzki
I was wondering if anybody else has run into this.  We are randomly losing
application variables ( mostly holding datasource info as that is what we
use most ).  We are running on a VPS with MX 6.1.  Our session and server
variables are not encountering any problems, just the application variables.
Also another tibit is those application variables are structures. Refreshing
page and the script works fine.  There is no pattern that I can decern when
it happens. Thanks... Here is the server log entry:

at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
Error,jrpp-1120,05/10/06,16:44:36,RAW,Element DATASOURCE.USERNAME
is undefined in APPLICATION. The specific sequence of files included or
processed is:
C:\wwwroot\HTML\Wilderness\Common\Includes\Pricing\LoadPricing.cfm 
coldfusion.runtime.UndefinedElementException: Element DATASOURCE.USERNAME is
undefined in APPLICATION.
at
coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1085)
at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1026)
at
coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1125)
at
cfPricing_V0_82ecfm1716210770._factor35(C:\wwwroot\HTML\Wilderness\Common\In
cludes\Pricing\Pricing_V0_8.cfm:489)
at
cfPricing_V0_82ecfm1716210770._factor41(C:\wwwroot\HTML\Wilderness\Common\In
cludes\Pricing\Pricing_V0_8.cfm:3)
at
cfPricing_V0_82ecfm1716210770.runPage(C:\wwwroot\HTML\Wilderness\Common\Incl
udes\Pricing\Pricing_V0_8.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1876)
at
cfLoadPricing2ecfm964484847.runPage(C:\wwwroot\HTML\Wilderness\Common\Includ
es\Pricing\LoadPricing.cfm:2)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistence
Filter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:105)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:
348)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451
)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:29
4)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240168
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Losing Application Variables Randomly...

2006-05-10 Thread Mark A Kruger
John,

Check to see that you do not have any applications on the server that share
the same name - like when you copy code for reuse :)

 

-Original Message-
From: John Skrotzki [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 3:51 PM
To: CF-Talk
Subject: Losing Application Variables Randomly...

I was wondering if anybody else has run into this.  We are randomly losing
application variables ( mostly holding datasource info as that is what we
use most ).  We are running on a VPS with MX 6.1.  Our session and server
variables are not encountering any problems, just the application variables.
Also another tibit is those application variables are structures. Refreshing
page and the script works fine.  There is no pattern that I can decern when
it happens. Thanks... Here is the server log entry:

at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
Error,jrpp-1120,05/10/06,16:44:36,RAW,Element DATASOURCE.USERNAME
is undefined in APPLICATION. The specific sequence of files included or
processed is:
C:\wwwroot\HTML\Wilderness\Common\Includes\Pricing\LoadPricing.cfm 
coldfusion.runtime.UndefinedElementException: Element DATASOURCE.USERNAME is
undefined in APPLICATION.
at
coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1085)
at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1026)
at
coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1125)
at
cfPricing_V0_82ecfm1716210770._factor35(C:\wwwroot\HTML\Wilderness\Common\In
cludes\Pricing\Pricing_V0_8.cfm:489)
at
cfPricing_V0_82ecfm1716210770._factor41(C:\wwwroot\HTML\Wilderness\Common\In
cludes\Pricing\Pricing_V0_8.cfm:3)
at
cfPricing_V0_82ecfm1716210770.runPage(C:\wwwroot\HTML\Wilderness\Common\Incl
udes\Pricing\Pricing_V0_8.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1876)
at
cfLoadPricing2ecfm964484847.runPage(C:\wwwroot\HTML\Wilderness\Common\Includ
es\Pricing\LoadPricing.cfm:2)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistence
Filter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:105)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:
348)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451
)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:29
4)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)





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


RE: Losing Application Variables Randomly...

2006-05-10 Thread Brad Wood
Are you using more than one cfapplication tag in your site with a
different application name?
Is there any logic around your cfapplication tag which could cause it to
not be executed, and therefore the page request would be outside of the
application?

Can you try/catch your access to that variable and in the catch dump the
application scope to see what it looks like, or even the application
name, to make sure you are in the application you expect to be?

Just a couple random ideas.


~Brad

-Original Message-
From: John Skrotzki [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 3:51 PM
To: CF-Talk
Subject: Losing Application Variables Randomly...

I was wondering if anybody else has run into this.  We are randomly
losing
application variables ( mostly holding datasource info as that is what
we
use most ).  We are running on a VPS with MX 6.1.  Our session and
server
variables are not encountering any problems, just the application
variables.
Also another tibit is those application variables are structures.
Refreshing
page and the script works fine.  There is no pattern that I can decern
when
it happens. Thanks... Here is the server log entry:


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240170
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Losing Application Variables Randomly...

2006-05-10 Thread Brad Wood
Also, when are these variables set?  If your CF service is restarted
during the day, your application scope will start over empty until those
values are cfset again.

~Brad

-Original Message-
From: John Skrotzki [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 3:51 PM
To: CF-Talk
Subject: Losing Application Variables Randomly...

I was wondering if anybody else has run into this.  We are randomly
losing
application variables ( mostly holding datasource info as that is what
we
use most ).  We are running on a VPS with MX 6.1.  Our session and
server
variables are not encountering any problems, just the application
variables.
Also another tibit is those application variables are structures.
Refreshing
page and the script works fine.  There is no pattern that I can decern
when
it happens. Thanks... Here is the server log entry:


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240172
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Losing Application Variables Randomly...

2006-05-10 Thread John Skrotzki
Thanks for the reply, I have 3 apps called:  RAW and RAW_Reps and COW ( 
customer order website 8-) and define the same app variables in each one - I 
know I should be using server scope but I designed it yeas ago when I was still 
green.  Changing it over now scares me as there are literlly thousands of 
queryies using those app variables ( big Intranet )

And yes, they are nested ( don't know if that is an issue ):

RAW -- RAW_Reps ( folder and children )
|--COW ( folder and children )

John,

Check to see that you do not have any applications on the server that share
the same name - like when you copy code for reuse :)

 

-Original Message-
From: John Skrotzki [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 3:51 PM
To: CF-Talk
Subject: Losing Application Variables Randomly...

I was wondering if anybody else has run into this.  We are randomly losing
application variables ( mostly holding datasource info as that is what we
use most ).  We are running on a VPS with MX 6.1.  Our session and server
variables are not encountering any problems, just the application variables.
Also another tibit is those application variables are structures. 
Refreshing

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


Re: Losing Application Variables Randomly...

2006-05-10 Thread Alan Rother
I've seen this before.

Most likely you have two or more apps on the same server using the same
application name.

=]

Alan Rother
Macromedia Certified Advanced ColdFusion MX 7 Developer


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


RE: Losing Application Variables Randomly...

2006-05-10 Thread Ben Nadel
John,

I get the same thing occasionally. Its rare, but sometimes I get User is
undefined in SESSION. It will happen on a user-by-user basis, meaning, the
rest of the users are fine. Just one person gets messed up.

I have not been able to debug it as it happens so infrequently that I can't
narrow it down.


...
Ben Nadel 
Web Developer
Nylon Technology
350 7th Avenue
Floor 10
New York, NY 10001
212.691.1134
212.691.3477 fax
www.nylontechnology.com
 
You know, like nunchuck skills, bowhunting skills, computer hacking
skills... Girls only want boyfriends who have great skills.
- Napoleon Dynamite
-Original Message-
From: John Skrotzki [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 4:51 PM
To: CF-Talk
Subject: Losing Application Variables Randomly...

I was wondering if anybody else has run into this.  We are randomly losing
application variables ( mostly holding datasource info as that is what we
use most ).  We are running on a VPS with MX 6.1.  Our session and server
variables are not encountering any problems, just the application variables.
Also another tibit is those application variables are structures. Refreshing
page and the script works fine.  There is no pattern that I can decern when
it happens. Thanks... Here is the server log entry:


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


Re: Losing Application Variables Randomly...

2006-05-10 Thread John Skrotzki
Brad - they are set in the application.cfm of each app - maybe that is the 
problem?
One weird instance was that it lost the variables DURING script execution when 
send out an email broadcast (opt in) - so for example, script starts loops for 
say 100 out of 200 fine then dies.  Wierd...


Also, when are these variables set?  If your CF service is restarted
during the day, your application scope will start over empty until those
values are cfset again.

~Brad


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


Re: Losing Application Variables Randomly...

2006-05-10 Thread Josh Nathanson
Hi John,

I am having a possibly related issue in a VPS/Linux setup, although it is 
using Blue Dragon rather than CF.  It seems to not be able to properly 
recurse up the directory tree to find an Application.cfm file if there is 
not an Application.cfm file in the same directory as the calling template. 
In my situation I get a session scope not enabled error; since it can't 
find the App.cfm file it's unable to set session management for the 
application.  Could be that you're getting undefined in application 
because it's not including your Application.cfm file at all.  Maybe you 
could do a test to see if it's even including the App.cfm file, and go from 
there.

This issue is still not resolved in my case, so I'm curious to see if it's 
similar to the issue I'm having and if you're able to resolve it.

-- Josh




- Original Message - 
From: John Skrotzki [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Wednesday, May 10, 2006 1:50 PM
Subject: Losing Application Variables Randomly...


I was wondering if anybody else has run into this.  We are randomly losing
 application variables ( mostly holding datasource info as that is what we
 use most ).  We are running on a VPS with MX 6.1.  Our session and server
 variables are not encountering any problems, just the application 
 variables.
 Also another tibit is those application variables are structures. 
 Refreshing
 page and the script works fine.  There is no pattern that I can decern 
 when
 it happens. Thanks... Here is the server log entry:

 at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
 Error,jrpp-1120,05/10/06,16:44:36,RAW,Element 
 DATASOURCE.USERNAME
 is undefined in APPLICATION. The specific sequence of files included or
 processed is:
 C:\wwwroot\HTML\Wilderness\Common\Includes\Pricing\LoadPricing.cfm 
 coldfusion.runtime.UndefinedElementException: Element DATASOURCE.USERNAME 
 is
 undefined in APPLICATION.
 at
 coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1085)
 at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1026)
 at
 coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1125)
 at
 cfPricing_V0_82ecfm1716210770._factor35(C:\wwwroot\HTML\Wilderness\Common\In
 cludes\Pricing\Pricing_V0_8.cfm:489)
 at
 cfPricing_V0_82ecfm1716210770._factor41(C:\wwwroot\HTML\Wilderness\Common\In
 cludes\Pricing\Pricing_V0_8.cfm:3)
 at
 cfPricing_V0_82ecfm1716210770.runPage(C:\wwwroot\HTML\Wilderness\Common\Incl
 udes\Pricing\Pricing_V0_8.cfm:1)
 at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
 at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
 at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1876)
 at
 cfLoadPricing2ecfm964484847.runPage(C:\wwwroot\HTML\Wilderness\Common\Includ
 es\Pricing\LoadPricing.cfm:2)
 at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
 at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
 at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
 at
 coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
 at
 coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
 at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
 at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
 at
 coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistence
 Filter.java:28)
 at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
 at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
 at
 coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
 at coldfusion.CfmServlet.service(CfmServlet.java:105)
 at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
 at
 jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
 at
 jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
 at
 jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
 at
 jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
 at
 jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:
 348)
 at
 jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451
 )
 at
 jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:29
 4)
 at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)



 

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


RE: Losing Application Variables Randomly...

2006-05-10 Thread Brad Wood
That is weird.  The only way I can imagine that happening is if a
concurrently running page deleted those vars out of the application
scope.  (which I doubt you have coded anywhere)

~Brad

-Original Message-
From: John Skrotzki [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 10, 2006 4:09 PM
To: CF-Talk
Subject: Re: Losing Application Variables Randomly...

Brad - they are set in the application.cfm of each app - maybe that is
the problem?
One weird instance was that it lost the variables DURING script
execution when send out an email broadcast (opt in) - so for example,
script starts loops for say 100 out of 200 fine then dies.  Wierd...


Also, when are these variables set?  If your CF service is restarted
during the day, your application scope will start over empty until
those
values are cfset again.

~Brad




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240179
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Losing Application Variables Randomly...

2006-05-10 Thread John Skrotzki
No I don't.  But I am sure it is my coding somewhere as I still don't have a 
solid grasp on the inner workings of apps and app files.  I will try the try / 
catch idea to see if I can narrow it down.  It was more of a minor irrantant as 
refreshing works but when sending emails it becomes serious.  Is there any 
defintive tutorial on the net on the proper way to deal with multiple 
applications and how to set it up properly as I am sure I still don't fully 
understand it.  

Josh I will see what I can find out - I am just so busy it may take awhile.

Thanks all...

That is weird.  The only way I can imagine that happening is if a
concurrently running page deleted those vars out of the application
scope.  (which I doubt you have coded anywhere)

~Brad


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240183
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Losing Application Variables Randomly...

2006-05-10 Thread Snake
Or if your on a shared server, other customers could be using the same
application name too and thus hijacking your variables. 

-Original Message-
From: Mark A Kruger [mailto:[EMAIL PROTECTED] 
Sent: 10 May 2006 21:58
To: CF-Talk
Subject: RE: Losing Application Variables Randomly...

John,

Check to see that you do not have any applications on the server that share
the same name - like when you copy code for reuse :)

 

-Original Message-
From: John Skrotzki [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 10, 2006 3:51 PM
To: CF-Talk
Subject: Losing Application Variables Randomly...

I was wondering if anybody else has run into this.  We are randomly losing
application variables ( mostly holding datasource info as that is what we
use most ).  We are running on a VPS with MX 6.1.  Our session and server
variables are not encountering any problems, just the application variables.
Also another tibit is those application variables are structures. Refreshing
page and the script works fine.  There is no pattern that I can decern when
it happens. Thanks... Here is the server log entry:

at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
Error,jrpp-1120,05/10/06,16:44:36,RAW,Element DATASOURCE.USERNAME
is undefined in APPLICATION. The specific sequence of files included or
processed is:
C:\wwwroot\HTML\Wilderness\Common\Includes\Pricing\LoadPricing.cfm 
coldfusion.runtime.UndefinedElementException: Element DATASOURCE.USERNAME is
undefined in APPLICATION.
at
coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1085)
at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1026)
at
coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1125)
at
cfPricing_V0_82ecfm1716210770._factor35(C:\wwwroot\HTML\Wilderness\Common\In
cludes\Pricing\Pricing_V0_8.cfm:489)
at
cfPricing_V0_82ecfm1716210770._factor41(C:\wwwroot\HTML\Wilderness\Common\In
cludes\Pricing\Pricing_V0_8.cfm:3)
at
cfPricing_V0_82ecfm1716210770.runPage(C:\wwwroot\HTML\Wilderness\Common\Incl
udes\Pricing\Pricing_V0_8.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1876)
at
cfLoadPricing2ecfm964484847.runPage(C:\wwwroot\HTML\Wilderness\Common\Includ
es\Pricing\LoadPricing.cfm:2)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistence
Filter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:105)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:
348)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451
)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:29
4)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)







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


Re: Losing Application Variables Randomly...

2006-05-10 Thread John Skrotzki
I think I may have found the problem ( at least logically ) after examining my 
app code closer.

I don't check to see if the appication.datasource is already defined.  I just 
re-define it everytime.  So it comes down to a race condition.  If another 
person accesses that app at the exact same time the datasource is being 
redefined (structurely) it would of course not exists.

I am modifying my code to check to see if it is already defined.

Thoughts...

 No I don't.  But I am sure it is my coding somewhere as I still don't 
 have a solid grasp on the inner workings of apps and app files.  I 
 will try the try / catch idea to see if I can narrow it down.  It was 
 more of a minor irrantant as refreshing works but when sending emails 
 it becomes serious.  Is there any defintive tutorial on the net on the 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240187
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Losing Application Variables Randomly...

2006-05-10 Thread Snake
Locking :-) 

-Original Message-
From: John Skrotzki [mailto:[EMAIL PROTECTED] 
Sent: 10 May 2006 22:58
To: CF-Talk
Subject: Re: Losing Application Variables Randomly...

I think I may have found the problem ( at least logically ) after examining
my app code closer.

I don't check to see if the appication.datasource is already defined.  I
just re-define it everytime.  So it comes down to a race condition.  If
another person accesses that app at the exact same time the datasource is
being redefined (structurely) it would of course not exists.

I am modifying my code to check to see if it is already defined.

Thoughts...

 No I don't.  But I am sure it is my coding somewhere as I still don't 
 have a solid grasp on the inner workings of apps and app files.  I 
 will try the try / catch idea to see if I can narrow it down.  It was 
 more of a minor irrantant as refreshing works but when sending emails 
 it becomes serious.  Is there any defintive tutorial on the net on the



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


Application variables from db?

2006-04-09 Thread Ken
Hi. Is it ok to set certain application variables in application.cfm from
values stored in the database?
There are certain site-wide settings that I need to store in the database.
Then do this in the application.cfm file:

CFIF NOT IsDefined Application.MySetting1

cfquery name=myquery dsn=dsn
Select Settings from db Where 
/cfquery

cfset Application.MySetting1 = myquery..MySetting1

/CFIF

My questions are:
1. Is it ok to set application variables using the above method?
2. If I need to update the above Application.MySetting1 variable to a new
value, how will I do so?

Thanks,

Ken.


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237302
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Application variables from db?

2006-04-09 Thread Charles Sheehan-Miles
With the main app I'm working on, the first thing in application.cfm is a
query to match the host header name against the correct website in the
database, then everything else is determined from there, including the
application name -- so I'm hosting multiple websites/customers off the same
code base, depending on what is in the database.

cfquery name=rsOrganization datasource=hosting cachedwithin
=#CreateTimespan(0,0,30,0)#
select * from rsOrganization where
OrgServername = '#CGI.server_name#'
/cfquery

CFAPPLICATION name=#rsOrganization.OrgShortname#_Root
setclientcookies=Yes
clientmanagement=Yes
clientstorage=hostingClientVariables
sessionmanagement=Yes
sessiontimeout=#CreateTimespan(0,4,0,0)#

applicationtimeout=#CreateTimespan(0,4,0,0)# setdomaincookies=Yes




On 4/9/06 5:15 PM, Ken [EMAIL PROTECTED] wrote:

 Hi. Is it ok to set certain application variables in application.cfm from
 values stored in the database?
 There are certain site-wide settings that I need to store in the database.
 Then do this in the application.cfm file:
 
 CFIF NOT IsDefined Application.MySetting1
 
 cfquery name=myquery dsn=dsn
 Select Settings from db Where 
 /cfquery
 
 cfset Application.MySetting1 = myquery..MySetting1
 
 /CFIF
 
 My questions are:
 1. Is it ok to set application variables using the above method?
 2. If I need to update the above Application.MySetting1 variable to a new
 value, how will I do so?
 
 Thanks,
 
 Ken.
 
 
 

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


Re: Application variables from db?

2006-04-09 Thread S . Isaac Dealey
 Hi. Is it ok to set certain application variables in
 application.cfm from
 values stored in the database?
 There are certain site-wide settings that I need to store
 in the database.
 Then do this in the application.cfm file:

 CFIF NOT IsDefined Application.MySetting1

 cfquery name=myquery dsn=dsn
 Select Settings from db Where 
 /cfquery

 cfset Application.MySetting1 = myquery..MySetting1

 /CFIF

 My questions are:
 1. Is it ok to set application variables using the above
 method?
 2. If I need to update the above Application.MySetting1
 variable to a new
 value, how will I do so?

 Thanks,

 Ken.

I don't think there's anything necessarily wrong with having variables
that are both in your database and in the application scope. I would
recomment a slightly different approach. I would construct a CFC which
accepts your dsn and clientid in its init method. I assume each row of
this table represents a different client using the same application. I
would then have the init method call a fetch method which fetches the
row for the indicated client and populates values in the CFC's
variables scope. Once that had been done I would implement a
getSetting method for fetching an individual setting, and store the
CFC in your application scope, thus, rather than referencing
application.setting1 in your application, you would reference
application.appMgr.getSetting(setting1) or possibly
application.appMgr.getSetting1() if you prefer individual accessor
methods.

The advantage of this is that if you need to change the manner in
which the settings are stored or managed later, it will be easiest to
do that internally within the CFC if your application references this
method, instead of directly referencing an application variable.
Another setSetting() or individual setSetting1() methods can then
update the CFC and the database (or other storage medium)
simultanously.

Now here's the rub. Do you need to manage these settings in a central
application (one that can manage multiple client applications
simultanously) or only within each individual application? If you
don't need a centralized application for managing these, then it's
pretty straightforward, and you can use the onApplicationStart method
of your Application.cfc to instantiate and store your appMgr cfc in
the application scope.

If you need a centralized application then you'll have to find some
way to get the data into each individual application when you update
it. One way to do this is to use the cfapplication tag in your central
application to temporarily relocate the current request into the
target application and update its appMgr cfc -- the problem you'll
experience with this approach will be to ensure that the application
has already started, because if you use cfapplication to initialize
the application name, the ColdFusion server won't know where to look
for the Application.cfc and so it won't execute the onApplicationStart
method. Using a simple http request for the application's login or
home page using the cfhttp tag may be enough to ensure it's started
before making changes. An alternative would be to build a webservice
into each subordinate application, which of course brings other
challenges with it.



s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237305
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Application variables from db?

2006-04-09 Thread Ken
Hi Charles. Got a question for you. Say you updated the value of  the field
OrgShortname in the database, for one of the websites. How soon would the
application variable associated with it get updated?
Also, in your code, are you not loading the database too much, since you
have the query in your application.cfm file. How often is this query going
to run?

Thanks,
Ken


On 4/9/06, Charles Sheehan-Miles [EMAIL PROTECTED] wrote:

 With the main app I'm working on, the first thing in application.cfm is a
 query to match the host header name against the correct website in the
 database, then everything else is determined from there, including the
 application name -- so I'm hosting multiple websites/customers off the
 same
 code base, depending on what is in the database.

 cfquery name=rsOrganization datasource=hosting cachedwithin
 =#CreateTimespan(0,0,30,0)#
 select * from rsOrganization where
 OrgServername = '#CGI.server_name#'
 /cfquery

 CFAPPLICATION name=#rsOrganization.OrgShortname#_Root
 setclientcookies=Yes
clientmanagement=Yes
 clientstorage=hostingClientVariables
sessionmanagement=Yes
 sessiontimeout=#CreateTimespan(0,4,0,0)#

 applicationtimeout=#CreateTimespan(0,4,0,0)# setdomaincookies=Yes




 On 4/9/06 5:15 PM, Ken [EMAIL PROTECTED] wrote:

  Hi. Is it ok to set certain application variables in application.cfmfrom
  values stored in the database?
  There are certain site-wide settings that I need to store in the
 database.
  Then do this in the application.cfm file:
 
  CFIF NOT IsDefined Application.MySetting1
 
  cfquery name=myquery dsn=dsn
  Select Settings from db Where 
  /cfquery
 
  cfset Application.MySetting1 = myquery..MySetting1
 
  /CFIF
 
  My questions are:
  1. Is it ok to set application variables using the above method?
  2. If I need to update the above Application.MySetting1 variable to a
 new
  value, how will I do so?
 
  Thanks,
 
  Ken.
 
 
 

 

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


Re: Application variables from db?

2006-04-09 Thread Denny Valliant
On 4/9/06, Ken [EMAIL PROTECTED] wrote:

 Hi Charles. Got a question for you. Say you updated the value of  the
 field
 OrgShortname in the database, for one of the websites. How soon would the
 application variable associated with it get updated?
 Also, in your code, are you not loading the database too much, since you
 have the query in your application.cfm file. How often is this query going
 to run?


Since it's in Application.cfm, which gets run once per request, it's getting
run every request. Which means it's being get and set with each
request.  Sound place for a cgi type if deal, but the downside of having
the query in the application.cfm is it's getting run each request as well,
and depending on how you have your error trapping set up, you could hit a DB
error before you've set you db error handling, or whatnot.  Might make more
sense, if there aren't a lot of sites, to store the list in memory and
compare against that instead of running the query.

You can use a structClear() to clear the application and session scopes, not
to sure if the structClear on Application is kosher or not.

:Denny

-ps sorry for the lack of trimming/whatnot of my posts. Still getting used
to gmail's way, which is s freaking slick it's not funny. I really gotta
hand it to 'em, rocking UIs!


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


Re: Application variables default timeout iin CFAdmin

2006-01-27 Thread James Holmes
It's up to you - if an application that hasn't been visited in three
years is important, then set it to 999 days. You may decide the memory
saving is worth a shorter timeout.

On 1/27/06, Baz [EMAIL PROTECTED] wrote:
 Hi,

 In the CFAdmin, under 'Memory Variables', there's a default application
 variables timeout setting. I personally don't want my application variables
 to ever timeout, is it common practice to just put 999 days? Are there any
 issues to this? Is there any reason to want your app variables to timeout
 often?

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

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


Application variables default timeout iin CFAdmin

2006-01-26 Thread Baz
Hi,

In the CFAdmin, under 'Memory Variables', there's a default application
variables timeout setting. I personally don't want my application variables
to ever timeout, is it common practice to just put 999 days? Are there any
issues to this? Is there any reason to want your app variables to timeout
often?

Thanks,
Baz



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


Application Variables

2004-11-09 Thread Andrew Dixon
Hi Everyone

I have an application that is storing information in applications
variables. I need each of this variables to be available for about 1
hour . I have created a application.cfm file with a CFAPPLICATION tag
as follows:

cfapplication  name=theWebSite 
applicationTimeout=#CreateTimeSpan(0,1,0,0)#

Will this automatically remove variables after the timeout time if
they are not re-wrote, or will they stay there until the whole
application is not used by anyone for 1 hour?

Thanks

Andrew.

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183746
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Application Variables

2004-11-09 Thread Ian Skinner
The latter, you will have to do something more sophisticated to remove the 
variables.  Something along the lines of storing their creation data/time and 
then removing the values after the hour is up.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

C code. C code run. Run code run. Please!
- Cynthia Dunning



Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183750
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=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Application Variables

2004-11-09 Thread Andrew Dixon
Hi Ian.

That is what I thought, but it was worth checking.

Thanks.

Andrew.


On Tue, 9 Nov 2004 08:43:02 -0800, Ian Skinner
[EMAIL PROTECTED] wrote:
 The latter, you will have to do something more sophisticated to remove the 
 variables.  Something along the lines of storing their creation data/time and 
 then removing the values after the hour is up.
 
 --
 Ian Skinner
 Web Programmer
 BloodSource
 www.BloodSource.org
 Sacramento, CA
 
 C code. C code run. Run code run. Please!
 - Cynthia Dunning
 
 Confidentiality Notice:  This message including any
 attachments is for the sole use of the intended
 recipient(s) and may contain confidential and privileged
 information. Any unauthorized review, use, disclosure or
 distribution is prohibited. If you are not the
 intended recipient, please contact the sender and
 delete any copies of this message.
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

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


List/Clean Application variables/objects

2004-08-11 Thread olivier olivier
Hello !

I am having some problems with I think are coming from a site using the Application scope to store variables and objects...

I was wondering if there is a way to list everything that is stored into the Application scope, so that I can run some CFDUMP on these and analyze what is going on

Also, is there another way -besides restarting CFMX- to clear the application scope ? I understand the consequences of clearing this scope while the server and various sites are running, but I'd like to know if this is possible using CF code or script...

Thanks a lot everyone !
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: List/Clean Application variables/objects

2004-08-11 Thread Tim Blair
Easy,

 I was wondering if there is a way to list everything that is 
 stored into the Application scope

cfdump var=#application#

 Also, is there another way to clear the application scope ?

cfset structclear(application)

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - Internet, New Media and ebusiness Gurus.
WE'VE MOVED - for our new address, please visit our
website at http://www.rawnet.com/ or call us any time
on 0800 294 24 24.
---
This message may contain information which is legally
privileged and/or confidential.If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: List/Clean Application variables/objects

2004-08-11 Thread Dave Watts
 I am having some problems with I think are coming from a site 
 using the Application scope to store variables and objects...
 
 I was wondering if there is a way to list everything that is 
 stored into the Application scope, so that I can run some 
 CFDUMP on these and analyze what is going on

You can simply use CFDUMP to see what's in the Application scope:

cfdump var=#Application#

There may be a way to see all of the Application scopes on a server, as
there is with Sessions, using some of the Java underpinnings of CFMX 6.1,
but I don't know myself. You might start looking here:

http://www.rewindlife.com/archives/69.cfm

 Also, is there another way -besides restarting CFMX- to clear 
 the application scope ? I understand the consequences of 
 clearing this scope while the server and various sites are 
 running, but I'd like to know if this is possible using CF 
 code or script...

You can simply clear everything within the Application scope using the
StructClear function.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: List/Clean Application variables/objects

2004-08-11 Thread Boyzoid
cfdump var=#application#

- Original Message -
From: olivier olivier [EMAIL PROTECTED]
Date: Wed, 11 Aug 2004 11:31:15 -0400
Subject: List/Clean Application variables/objects
To: CF-Talk [EMAIL PROTECTED]

Hello !

 I am having some problems with I think are coming from a site using
the Application scope to store variables and objects...

 I was wondering if there is a way to list everything that is stored
into the Application scope, so that I can run some CFDUMP on these and
analyze what is going on

 Also, is there another way -besides restarting CFMX- to clear the
application scope ? I understand the consequences of clearing this
scope while the server and various sites are running, but I'd like to
know if this is possible using CF code or script...

 Thanks a lot everyone !
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Disappearing/reappearing application variables...

2004-04-13 Thread Tyler Silcox
Is there any reason application variables would disappear before the
application timeout set in Application.cfm file?

 
I have the following code, which initializes an application based CFC if it
does not already exist.I put in a cflog tag to let me know how often it
rebuilds itself and it seems to re-initialize every 1-2 hours, even though I
have the application timeout set to 12 hours in the cfapplication tag (and
the server timeout is still set to the default 2 days for application vars.)

 
cfif NOT StructKeyExists(application, SomeCFC) OR 0
 cflock name=CreateSomeCFC#application.ApplicationName# timeout=10
throwontimeout=Yes type=Exclusive
cfscript
// i create the SomeCFC
application.SomeCFC=CreateObject(component, SomeCFC).Init();
/cfscript
 /cflock
 !--- i update the SomeCFC log file ---
 cflog text=SomeCFC initialized [#GetBaseTemplatePath()# ::
#cgi.Remote_Addr#] file=SomeCFC
/cfif

 
The CFC contains a semi-boatload of configuration data, cached structs, etc;
but I've definitely worked with larger amounts of persistent data
before...could this be an issue?Is there anyway to check how much is too
much with memory vars?As usual, any help would be greatly appreciated-

 
Tyler S

 
PS: I'm also going to add another conditional statement within the lock to
re-check if the struct exists, I've just been forcing the re-init by
changing the 0 to a 1
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Disappearing/reappearing application variables...

2004-04-13 Thread Tangorre, Michael
 Is there any reason application variables would disappear 
 before the application timeout set in Application.cfm file?

If the application timeout in the CF Administrator is less than what it is
set in your cfapplication tag.Did you check the admin setting?

Mike
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Disappearing/reappearing application variables...

2004-04-13 Thread Tyler Silcox
Yea, the Administrator's timeout for application vars is set to 2 days, and
I have my cfapplication tag asking for 12 hours...any other ideas?

 
Tyler

_

From: Tangorre, Michael [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 13, 2004 10:43 AM
To: CF-Talk
Subject: RE: Disappearing/reappearing application variables...

 Is there any reason application variables would disappear 
 before the application timeout set in Application.cfm file?

If the application timeout in the CF Administrator is less than what it is
set in your cfapplication tag.Did you check the admin setting?

Mike 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Disappearing/reappearing application variables...

2004-04-13 Thread Adrocknaphobia
Are there any other application.cfm on this server instnace. If so do they all have different application names?

-Adam

 -Original Message-
 From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 13, 2004 02:43 PM
 To: 'CF-Talk'
 Subject: RE: Disappearing/reappearing application variables...
 
  Is there any reason application variables would disappear 
  before the application timeout set in Application.cfm file?
 
 If the application timeout in the CF Administrator is less than what it is
 set in your cfapplication tag.Did you check the admin setting?
 
 Mike
 

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




  1   2   >