coldfusion-6

How to restart Coldfusion Application Server when application times out?

送分小仙女□ 提交于 2019-12-03 22:38:38
问题 Is there any way to restart the CF server through the Application.cfc, when the application times out? As per Adobe documentation, they showed as follows: <cffunction name="onApplicationEnd"> <cfargument name="ApplicationScope" required=true/> <cflog file="#This.Name#" type="Information" text="Application #Arguments.ApplicationScope.applicationname# Ended" > </cffunction> What I would like to do is replace the <cflog> above with <cfexecute> as follows: <cfexecute name = "C:\CFRestart.bat"

How to Parse JSON Returned in ColdFusion

一个人想着一个人 提交于 2019-12-01 10:54:33
I'm sure this is a relatively simple question, but I can't seem to find a simple answer anywhere online. I have a few lines of JSON returned by a cfhttp POST with an image URL that I'd like to parse out and display in my ColdFusion page: { "href": "http://server.arcgisonline.com/arcgis/rest/directories/arcgisoutput/ESRI_StreetMap_World_2D_MapServer/_ags_map734a6ad322dd493e84499d78f027d841.png", "width": 854, "height": 493, "extent": { "xmin": -8285407.015562119, "ymin": 4944008.4197687358, "xmax": -8220129.7934066672, "ymax": 4981691.8747132765, "spatialReference": { "wkid": 102100,

How to Parse JSON Returned in ColdFusion

邮差的信 提交于 2019-12-01 08:08:37
问题 I'm sure this is a relatively simple question, but I can't seem to find a simple answer anywhere online. I have a few lines of JSON returned by a cfhttp POST with an image URL that I'd like to parse out and display in my ColdFusion page: { "href": "http://server.arcgisonline.com/arcgis/rest/directories/arcgisoutput/ESRI_StreetMap_World_2D_MapServer/_ags_map734a6ad322dd493e84499d78f027d841.png", "width": 854, "height": 493, "extent": { "xmin": -8285407.015562119, "ymin": 4944008.4197687358,

How to restart Coldfusion Application Server when application times out?

我的未来我决定 提交于 2019-12-01 01:15:07
Is there any way to restart the CF server through the Application.cfc, when the application times out? As per Adobe documentation, they showed as follows: <cffunction name="onApplicationEnd"> <cfargument name="ApplicationScope" required=true/> <cflog file="#This.Name#" type="Information" text="Application #Arguments.ApplicationScope.applicationname# Ended" > </cffunction> What I would like to do is replace the <cflog> above with <cfexecute> as follows: <cfexecute name = "C:\CFRestart.bat" outputFile = "C:\output.txt" timeout = "1"> </cfexecute> So OnApplicationEnd will run the CFRestart.bat