开发者

Coldfusion call onServerStart manually

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜