lest I start sounding like Sean Corfield and become a BOF...

...a polite reminder about using this undocumented "feature" in 
production....it could turn around and bite you in the bum...(ie: I wouldn't 
base an important feature of an app on this...)

further quote from (another) person wiser than me:

"I wouldn't use it - it may not break immediately but it does immediately 
become unsupported by MM - if you were to submit a support incident the first 
thing they would say would be to get rid of it and see if it fixed the 
problem..."

choice is yours...


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Scott
> Barnes
> Sent: Thursday, 31 March 2005 3:01 PM
> To: CFAussie Mailing List
> Subject: [cfaussie] Re: Accessing application vars from a diff
> Application.
> 
> 
> noice...
> 
> 
> On Thu, 31 Mar 2005 14:54:37 +1000, Elliot Russo
> <[EMAIL PROTECTED]> wrote:
> > no probs with underlying java classes...from some code of 
> mine that resets
> > values on all applications and sessions on the server. 
> should show enogh to
> > get you what you want
> > 
> > Elliot
> > 
> > <cffunction name="markApplicationsForRefresh" returntype="void">
> >  <cfargument name="bRefreshSessions" type="boolean" default="false">
> > 
> >  <cfset var appTracker = createObject("java",
> > "coldfusion.runtime.ApplicationScopeTracker")>
> >  <cfset var appNames  = appTracker.getApplicationKeys()>
> > 
> >  <cfset var sessTracker = createObject("java",
> > "coldfusion.runtime.SessionTracker")>
> > 
> >  <cfset var appName  = "">
> >  <cfset var app   = "">
> >  <cfset var sessions  = "">
> >  <cfset var sessName  = "">
> > 
> >  <cfloop condition="#appNames.hasMoreElements()#">
> > 
> >   <cfset appName = appNames.nextElement()>
> >   <cfset app = appTracker.getApplicationScope(appName)>
> >   <div><strong>#appName#</strong> <cfif bRefreshSessions> and its
> > sessions</cfif> marked for rebuild next request</div>
> >   <cfif structKeyExists(app, "EnvironmentManager")>
> >    <cfset app.bRefresh = true>
> >   </cfif>
> > 
> >   <cfif bRefreshSessions>
> >    <cfset sessions = sessTracker.getSessionCollection(appName)>
> >    <cfloop item="sessName" collection="#sessions#">
> >     <cfset sessions[sessName].bRefresh = true>
> >    </cfloop>
> >   </cfif>
> > 
> >  </cfloop>
> > 
> > </cffunction>
> > 
> > "M@ Bourke" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > >
> > > Hi all
> > > If I have 2 sites (directorys) on the 1 server
> > > Blah.com/blip
> > > Blah.com/blop
> > >
> > > Is there anyway I could access the application vars in 
> "blip" from "blop"
> > >
> > > Note: both have there own application.cfm.
> > >
> > >
> > 
> > ---
> > You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> > To unsubscribe send a blank email to 
> [EMAIL PROTECTED]
> > Aussie Macromedia Developers: http://lists.daemon.com.au/
> > 
> 
> 
> -- 
> Regards,
> Scott Barnes
> http://www.mossyblog.com
> http://www.flexcoder.com (Coming Soon)
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to 
> [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
> 

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to