This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var domain = require("domain"); | |
var d = domain.create(); | |
d.on("error", function() { | |
console.log("domain caught"); | |
}); | |
try { | |
d.run(function() { | |
process.nextTick(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component { | |
this.name = "testingApp"; | |
public function onApplicationStart() { | |
// counter to prove the cron.cfm is firing | |
application.counter = 0; | |
} | |
public function onRequestEnd() { | |
// specify an index for the cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
component { | |
this.name = "testingApp"; | |
public function onRequestStart() { | |
Application.component1 = CreateObject("component1"); | |
Application.component2 = CreateObject("component2"); | |
Application.component3 = CreateObject("component3"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfcomponent> | |
<cfset this.name = "mySpecialApp"> | |
<cfset this.datasource = "rc_cms"> | |
<cfset this.ormEnabled = true> | |
<cffunction name="onError"> | |
<cfdump var="#arguments#"> | |
</cffunction> | |
</cfcomponent> |
NewerOlder