Coldfusion calls onServerStart manually

Is there a way to quickly call onServerStart in the Server.cfc component without restarting the service?

+3
source share
1 answer

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

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

Ray also wrote an excellent blog post on the topic: http://www.coldfusionjedi.com/index.cfm/2011/6/14/Can-you-manually-run-your-ColdFusions-onServerStart-CFC

+8
source

All Articles