Is there a way to quickly call onServerStart in the Server.cfc component without actually restarting the service?
1 Answer
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
-
You mean the onServerStart stuff ? help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/… (The rest ie syntax obviously works for any component, including application.cfc)– LeighJun 14, 2011 at 19:28