Ticket #195 (closed enhancement: completed)
Loading Page option in Bootstrapper
| Reported by: | peterfarrell | Owned by: | peterfarrell |
|---|---|---|---|
| Priority: | major | Milestone: | Mach-II 1.9.0 Milestone 1 |
| Component: | framework - core | Version: | 1.9.0 - Framework |
| Keywords: | bootstrapper, loading, page | Cc: | kurtwiersma, mattwoodward, bklaas@…, brianfitzgerald |
| Blocking: | Blocked By: |
Description
This ticket is a planning document to investigate the possibility of adding a "loading page" directive to the Mach-II bootstrapper. This would only be available on CFML engines that have threading available. However, it would work in a manner that the onApplicationStart() method in the Application.cfc would spawn a thread to load the framework, set the thread id in the application scope and then forward the request to the a developer defined "loading page" (which is not Mach-II based). Future requests would check an application variable such as application.loaded and the status of the thread to see if the "loading page" show be used.
The only problem is figuring out how to show errors to developers if something during the loading of the framework has gone wrong. We might have to ship with a simple load utility that is password protected that can get the exception if the application fails to load from the spawn thread scope.
I believe this would help give immediate response to users if an application is currently being loaded or reloaded and definitely eliminate the problem of threads stacking up waiting for the framework to load up.
I have added Brian Klaas to the ticket because he expressed interest helping to develop this potential feature. Let's discuss the idea here on this ticket. Are there any thoughts on implementation or potential problems with this idea?
