Hi,

So I was finally able to determine a solution to have one code location
with multiple server instances. This is no documentation specifying how
to do this, which is neither here nor there, but I thought I would send
this through in case other's run into this problem.

The solution is to create an almost empty J2EE archive (empty WAR)
inside CF Admin through Packaging & Deployment --> J2EE Archives
(.ear/.war). When I say empty, I mean it does not include my entire code
base; it has only one ColdFusion Template.
- Create the server instance, and add the Server instance to a cluster.
- Then copy the entire code base into the directory specified as the
home directory in IIS/other http server, etc.

All code will now be served from this location and not the server
instance location.

-----Original Message-----
From: John Haigh [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 11:37 AM
To: CF-Server
Subject: FW: CF MX 7.0 ENT Multiserver

This is why it is confusing as to where the code is being served from.

 

Below is the debug info which shows that the code is being served from
the WAR files, and if you look further below, it show it's coming form
d:\sites.

 

This is why it is confusing as to where the code is being served from.

 

Below is the debug info which shows that the code is being served from
the WAR files, and if you look further below, it show it's coming form
d:\sites.

 

Execution Time 

 

D:\JRun4\servers\TESTTWO\test.ear\test.war\Application.cfm

 

D:\JRun4\servers\TESTTWO\test.ear\test.war\company\company_list.cfm

 

Note the location it's being served from as d:\sites which is correct.

 

SQL Queries 

 

SWATCH (Datasource=CJOB_FROSTBITE, Time=0ms, Records=1) in
d:\sites\Application.cfm @ 11:27:03.003

 

CURRENT_USER (Datasource=CJOB_FROSTBITE, Time=31ms, Records=1) in
d:\sites\Application.cfm @ 11:27:03.003

 

-----Original Message-----
From: Douglas Knudsen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 24, 2006 3:46 PM
To: CF-Server
Subject: Re: CF MX 7.0 ENT Multiserver

 

I ran a test page called instance.cfm

 

Execution Time

 

 (0ms) D:\Inetpub\wwwroot\instance.cfm

 

 

some CGI vars

CF_TEMPLATE_PATH=D:\Inetpub\wwwroot\instance.cfm

 

PATH_TRANSLATED=d:\inetpub\wwwroot\instance.cfm

 

FYI...this littel piece of code will spit out which instance the

cluster directed you to

 

<cfobject action="create" type="java" class="jrunx.kernel.JRun"
name="jr" />

<cfset servername = jr.getServerName() />

<p><cfoutput>JRun Server Name: #servername#</cfoutput></p

 

 

DK





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:10:5973
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/10
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:10
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.10
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to