restart application without restarting server?

后端 未结 8 892
别那么骄傲
别那么骄傲 2020-12-10 01:35

Is there a way to restart a ColdFusion application without restarting the entire server?

There are two ColdFusion applications running on a server and I only want to

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-10 02:05

    A less invasive way of ending your app is to temporarily set the ApplicationTimeout to something very short.

    Here is an example from an application.cfc file where the app is set to timeout in 10 seconds, which is plenty short for making a change and then checking back:

    
        
            this.name = "myAppName";
            this.setclientcookies="yes";
            this.sessionmanagement="yes";
            this.sessiontimeout= CreateTimeSpan(0,0,60,0);
            this.applicationTimeout= CreateTimeSpan(0,0,0,10);
        
        ...
    
    

    You might need to limit the session, too. See this article by Ben Nadel for an in-depth look at Application and Session timeouts.

提交回复
热议问题