application's scope into the server scope at
server.applications.applicationName?
<cfapplication name="myApp">
<cflock name="registerApplication">
<cfparam name="server.applications" default="#structNew()#">
<cfset server.applications.myApp = application>
</cflock>
-joe
----- Original Message -----
From: Adrocknaphobia <[EMAIL PROTECTED]>
Date: Thu, 1 Jul 2004 18:26:32 -0400
Subject: Re: Can two applications on the same server talk to each other?
To: CF-Talk <[EMAIL PROTECTED]>
you can user the neglected scope SERVER.
-Adam
----- Original Message -----
From: Adam Haskell <[EMAIL PROTECTED]>
Date: Thu, 01 Jul 2004 18:12:10 -0400
Subject: Re: Can two applications on the same server talk to each other?
To: CF-Talk <[EMAIL PROTECTED]>
By using a little Java you can get at other app values but its all
dependent how CF runs ontop of Java, and since most consider this a
secruity threat it might be dealt with in new version of CF, heres a
code snippet:
<cfset appname = 'App1'>
<cfset appObj =
createObject("java","coldfusion.runtime.ApplicationScopeTracker")>
<cfset apps = appObj.getApplicationScope(appname)>
<!--- All application part locks --->
<cfset app1_load=StructFind(apps,"load")>
Adam Haskell
Sr Developer
Parts Express
Brook Davies wrote:
>If you have two <cfapplications> on a server, can you share values between
>apps? Can I ask, from app2, if app1.application.load is "true" ?
>
>Brook
>
>
>
>
>________________________________________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

