Is there a way to reset the Application, via onApplicationStart, and ensure that all the servers in the cluster have their application restarted?
For example, in the current code, DSN is set in request.
I would like to push it to application scope, but if there is a change that needs to be made, I would like to make sure it is propagated to all the servers in the cluster without starting and stopping CF services.
One suggestion is to have a date-stamped file in your project that each server can read.
Get CF to save the date into the application on start-up and compare what it has against that file in each onRequestStart().
If the date ever changes then CF runs the onApplicationStart() of that server.
We use that technique with our ANT scripts, so as we deploy to each server ANT timestamps the file and the next person to hit our application causes the application reset.
Cheers,
James