Doug,

Why not use cfdirectory to loop thru the JRun4/servers folder, picking up the port number from each instance's web.xml file ala:

<cfdirectory action="" directory="/CFMX7/servers" name="dirList" />
<cfoutput query="dirList">
<cfset fileName = directory & "/" & name & '/SERVER-INF/jrun.xml'>
<cfset cfTest = directory & "/" & name & '/cfusion.ear/cfusion.war/cfide'>
<cfset cfAltTest = directory & "/" & name & '/cfusion-ear/cfusion-war/cfide'>
<cfif dirList.type is "Dir" and fileExists(fileName) and (directoryExists(cfTest) or directoryExists(cfAltTest))>
<cfset appXml = xmlParse(fileName)>
<cfset port = xmlSearch(appXml,"/jrun-server/[EMAIL PROTECTED]'WebService']/[EMAIL PROTECTED]'port']")>
Refreshing #name#:#port[1].xmlText#<br>
<cfhttp url=""http://localhost">http://localhost:#port[1].xmlText#/reloadAppScopeWhatever.cfm" />
</cfif>
</cfoutput>

But instead of outputting #name#, use CFHTTP to call something to refresh the application.

Just a thought, and it may not work for your situation, but it seems worth a try... I suppose it would work well if you're running a cluster of instances on the same box. I'm not all THAT familiar with clustering, so you may need to tweak accordingly.

Laterz,
J


------------------------------------------------
Jared C. Rypka-Hauer
Continuum Media Group LLC
Member, Team Macromedia - ColdFusion

"That which does not kill me makes me stranger." - Yonah Schmeidler














On May 1, 2006, at 8:46 PM, Douglas Knudsen wrote:

ing what is cached.  If code caches a instance of CFC a in say
the application scope, then a changes due to a update, how to get the
new version cached elegantly?  Currently we have J2EE clusters setup.
We use IIS, hitting ourdomain.com/appname/?reset=yes obviously doesn't
work.  I have the internal JRun servers turned on and I have to hit
each internal JRun server instance with something like
ourdomain.com:8300/appname/?reset=yes for each internal port number. I have yet to find any elegant type approach to do this.  Has
adobe.com some slick trick to do this?  Maybe I just have to stick it
out, eh?  I'm not griping, just wondering if there is a purty slick
way to do this.

Reply via email to