I think it would actually be pretty simple. You need to get a list of
applications (or hard-code the ones you want it to update)
Then just do (psudo-code):
Loop all your applications
<cfapplication name="#appName#">
<cfset vars to whatever >
End loop
This should set the vars into each app name you specify as it loops.
Chris
-----Original Message-----
From: James Buckingham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 30, 2007 8:07 AM
To: CF-Talk
Subject: Accessing another cfapplications scope
Hi everyone,
I've built a little bit of code which loads an .ini file and updates a
single app's application scope with any changes. I've been asked to
redesign this though so when we do an update in the ini and hit
'refresh' the code goes through ALL of our applications and applies the
updates to all of their scopes.
I've had a look around online and found a few articles which talk about
the theory of being able to see the application scopes of all the other
applications on an environment but I was wondering if anybody had any
examples which show how one application can update the information of
another?
One idea we've had is to setup an include in each application. CFHTTP to
that page and process the requests from there. That means hard coding a
list of every application we have on the server though so I'm holiding
on to that one as a "plan b" until I find out if I can access some kind
of Java object in order to gather this information dynamically and run
this off one page.
Does anybody have any ideas?
Cheers,
James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2.
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279564
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4