RE: [coldbox:18146] [coldbox-3.5.3] Coldbox in server scope

No need to move all of ContentBox. Just change the Wirebox scope registration settings. By default WireBox registers itself in the application scope with the key “wirebox”.

wirebox.scopeRegistration = {
	enabled = true,
	scope   = "server", // server, cluster, session, application
	key		= "sharedWireBoxInstance"

Then, you can get to it as server.sharedWireBoxInstance.getInstance()

Just want out for weird scope widening errors if you start storing instances from one application in another and the first application gets shut down. It will be best to always retrieve the instances from WireBox when you need them and not store them anywhere in the other application.



ColdBox Platform Evangelist
Ortus Solutions, Corp

ColdBox Platform:

So cool.