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/