I'll leave it to others to
point to the entire chapters in the
documentation that discusses these issues as well as innumerable blogs,
white papers and discussion
list s and give the 10 second rundown.
Normal
HTTP request-response are stateless. No
data is persisted from
one request to the next under normal conditions. To allow data to
persist Cold Fusion (and most other web languages in one way or another)
create
persistent scopes. Cold Fusion offers several levels and varietes
of scopes to persist data;
server ,
application ,
session ,
client and
cookie to name some and request
sort of in a way.
Each of these scopes of different purposes and characteristics. Some
are specific to a user (session and client) some to an application
(application) and some to an entire server (server). Some are stored in
memory on the server (session, application and server) some on the
client either in memory or a
file (cookie).
Locking is a concept to protect data from race conditions. Since web
applications can be accessed by multiple people from multiple locations
at the same time, sometimes applications can attempt to change the data
in a common
variable to different values at the same time. Sometimes
this can cause serious consequences to an application, i.e a race
condition. When this is the case, locking can be employed to only allow
the value of a variable to be changed one at a time, but this can have
serious performance consequences so adjudication needs to be used on
when and how much should be locked at any given point. In versions past
(pre-CF5) there where bugs and problems with the global scopes like
server, application and session so universal locking with was a
workaround to avoid these problems.
Ok, that took way more then 10 seconds. You can see this is a big
topic. If you are a beginner who wishes to learn more, I highly
recomened reading the documentation and other published material. Then
if you've specific questions about certain aspects of what you read we
can help clarify the concepts.
Usually such broad and global questions don't receive much positive
responses from a list such as this.
what are CF Application Variables?
SessionVariables?
ServerVariables?
clientVariables?
any otherVariables?
what are locking and how is it significant to these variables?
what do you lock and what reasons to lock and how many locks? common locks?
how are all these relevant when a CF
program crashes? I ask because I am a beginner and the seniors were talking about these issuse
but wasn't defined and clear to me.
Thanks
Blogs related to what are CF Application Variables?
RE: Chicken or Egg? Config File to Set Application Variables
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?
...
Why JavaScript (or really, ECMAScript)?
I’m talking about using JS as an alternate/supplemental syntax for your CFML applications, which still run on the
ColdFusion application server, with all the niceties that the
CF server provides.
...
Instantiating all objects within Application cfm
I use the request scope for database name, username & password for cfqueries since I believe
application variables can be read by all on a shared server - not sure if this is still the case though. Andrew. > I store settings such
...
Chicken or Egg? Config File to Set Application Variables
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
...
Chicken or Egg? Config File to Set Application Variables
> 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/
...
Chicken or Egg? Config File to Set Application Variables
You can't use cffile to read the config file? On 7/27/07, Michael Dawson
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 ...