开发者

Coldfusion call onServerStart manually

开发者 https://www.devze.com 2023-03-13 03:21 出处:网络
Is there a way to qui开发者_运维百科ckly call onServerStart in the Server.cfc component without actually restarting the service?you can call it by creating an instance of the server.cfc

Is there a way to qui开发者_运维百科ckly call onServerStart in the Server.cfc component without actually restarting the service?


you can call it by creating an instance of the server.cfc

objServer = createObject("component", "server");
objServer.onServerStart();

Ray has also written a great blog post on the subject: http://www.coldfusionjedi.com/index.cfm/2011/6/14/Can-you-manually-run-your-ColdFusions-onServerStart-CFC

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号