3

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

1 Answer 1

8

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

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.