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
精彩评论