Skip to main content
November 14, 2012
Question

Starting and Stopping an Instance

  • November 14, 2012
  • 2 replies
  • 839 views

We are looking at setting up our CF10 server such that each application will be in its own instance, and allowing the developers access to their own instance.  Is there any way to start and stop the instances from within the instance?  We are hoping that there is some way to do this without logging into the cfusion administrator to manage the restarts of each instance.  We are installed on Windows.

Thanks!

Jenn

This topic has been closed for replies.

2 replies

BKBK
Community Expert
Community Expert
November 19, 2012

The administrator could run the following code:

<cfscript>

instanceName="bkbk";

createObject("component", "CFIDE.adminapi.administrator").login("admin_password") ;

serverInstanceObject=createObject("component", "CFIDE.adminapi.serverinstance");

// start the instance of given name

serverInstanceObject.startInstance(instanceName);

// stop the instance of given name

// serverInstanceObject.startInstance(instanceName);

</cfscript>

<!--- properties and methods of Serverinstance.cfc --->

<!--- <cfdump var="#serverInstanceObject#">--->

Legend
November 14, 2012

Jenn you could try CF10 Server Manager. This URL should get you started:

http://www.adobe.com/support/coldfusion/downloads.html#cf10serverinstallers

In part says:
ColdFusion 10 Server Manager WAR Files
These application server specific WAR files need to be deployed on the application server to enable you to run the ColdFusion Server Start and Stop operations from the Server Manager.

HTH, Carl.