Set up multiple CF instances in JRun.  The free developer edition (or
the soon to be killed DevNet version) let you do this without cost. 
You'll be running each version of the app in a totally independant
environment with no possibility of confusion.  We do this in our
office with great success.  It does require a bit of RAM in the dev
server though, since CF isn't a very lightweight app, and you have a
complete copy of it for each instance.

These phantom problems that you're having (among other things)
prompted me to go this route, rather than just running multiple
versions on the same instance.  It's a little more headache to get
everything set up, but it's worth it.

cheers,
barneyb

On Mon, 17 Jan 2005 11:39:20 +1100, Duncan I Loxton
<[EMAIL PROTECTED]> wrote:
> I have found that we had cache web server paths checked in the Server
> Administrator.  Now the different sites are running the correct
> versions of the code, but they are still sharing the applications
> vars.  I cant find anything in the cf admin that could be making this
> happen.
> 
> My application.cfm now sets the app name dynamically:
> 
> <cfif findnocase("dev",cgi.server_name)>
>         <cfset request.appmapping = "intranet_dev">
> <cfelse>
>         <cfset request.appmapping = "intranet">
> </cfif>
> <Cfparam name="request.appmapping" default="intranet">
> 
> <cfapplication name="#request.appmapping#" sessionmanagement="Yes"
> setclientcookies="Yes" sessiontimeout="#CreateTimeSpan(0,0,20,0)#">
> 
> and the request.appmapping is returning the correct info.
> 
> Then in myGlobals.cfm:
> <!--- only set application variables if not already defined in
> application scope --->
> <cfif NOT IsDefined("application.datasource") or
> isdefined("attributes.refreshvars")>
> 
> <cflock type="EXCLUSIVE" timeout="60" scope="application">
>         <cfif findnocase("dev",cgi.server_name)>
>                 <cfset application.datasource="MPlus_dev">
>                 <cfset application.dbusername="sa">
>                 <cfset application.dbuserpwd="191nsh">
>         <cfelse>
>                 <cfset application.datasource="MPlus">
>                 <cfset application.dbusername="sa">
>                 <cfset application.dbuserpwd="191nsh">
>         </cfif>
>         <cfset application.checkip="1">
>         <cfset application.nonExclusionList="">
>         <cfset application.maxRows="20">
> </cflock>
> 
> </cfif>
> 
> But both applications overwrite the others info when I refreshvars or
> restart CF services.
> 
> Please can anyone help me out? I am about to have a breakdown.
> 
> Duncan
> 

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 8 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase Contribute 3 from House of Fusion, a Macromedia Authorized Affiliate 
and support the CF community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=53

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190655
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to