Restart ColdFusion instance via Admin API
ColdFusion
I was experimenting with the ColdFusion Admin API just to find out what it would take to restart ColdFusion programatically. Turns out it is very simple!
Or maybe you want to enable/disable Robust Debugging?
Cool huh?
<cfscript>
adminObj = createObject("component","cfide.adminapi.administrator");
adminObj.login("ColdFusion Password");
// Instantiate the serverInstance object.
myServer = createObject("component","cfide.adminapi.serverInstance");
myServer.restartInstance("InstanceName");
</cfscript>
Or maybe you want to enable/disable Robust Debugging?
myDebugging = createObject("component","cfide.adminapi.debugging");
myDebugging.setDebugProperty("enableRobustExceptions",true);
Cool huh?
Available Admin API objects:
|
Contains basic Administrator functionality, including login, logout, the Migration Wizard, and the Setup Wizard. You must call the |
|
|
Base object for all other Administrator API CFCs. |
|
|
Add, modify, and delete ColdFusion data sources. |
|
|
Manage debug settings. |
|
|
Manage event gateways. |
|
|
Manage custom tags, mappings, CFXs, applets, CORBA, and web services. |
|
|
Manage ColdFusion mail settings. |
|
|
Manage runtime settings for fonts, cache, charts, configuration, and other settings. |
|
|
Manage passwords, RDS, and sandbox security. |
|
|
Start, stop, and restart JRun servers. This CFC only works when running the multiserver configuration. |





Loading....