component { this.name = "TomcatStartupTest"; this.applicationmanagement = true; this.sessionmanagement = false; this.clientmanagement = false; this.setclientcookies = false; this.scopeCascading = "strict"; this.sessionType = "j2ee"; this.sessionStorage = "memory"; this.charset.web="UTF-8"; this.charset.resource="UTF-8"; this.localMode = "modern"; function onApplicationStart() { log file="debug" text="onApplicationStart started. (#getTickCount()#)"; server.applicationSetupComplete = false; try { lock name="startApplication" type="exclusive" timeout="10" throwontimeout="true" { if (!server.applicationSetupComplete) { log file="debug" text="onApplicationStart executing. (#getTickCount()#)"; sleep(5000); server.applicationSetupComplete = true; } else { log file="debug" text="onApplicationStart aborted. (#getTickCount()#)"; abort; } } } catch (any e) { log file="debug" text="onApplicationStart error. (#getTickCount()#, #e.message#)"; throw("Abort het gaat fout."); } log file="debug" text="onApplicationStart ended. (#getTickCount()#)"; } function onRequestStart(string targetPage) { callID = createUUID(); log file="debug" text="onRequestStart called. (#getTickCount()#, #callID#)"; if (!structKeyExists(server, "applicationSetupComplete") || !server.applicationSetupComplete) { log file="debug" text="onRequestStart aborted. (#getTickCount()#, #callID#)"; abort; } log file="debug" text="onRequestStart ended. (#getTickCount()#, #callID#)"; } function onRequest(string targetPage) { abort; } }