Coldbox and Fusebox in the same CF App context

Hi, I’m not sure if this was asked before, I could only find references to a Fusebox Loader for onTap framework. Is it possible to run a FB and a CB application into the same CF application context ? I’m trying to figure out a way to gradually migrate a large application from Fusebox to Coldbox and I’m exploring all kinds of ideas.

Thanks,

Cristian

I don’t see why not. ColdBox runs as a key in application scope, you can then in Application.cfc decide what files are processed by coldbox.

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Luis, can you expand on that!

My understanding is that the key only comes into contention when ColdBox is being called, so how would ColdBox then determine if the URL is a fusebox or ColdBox event?

Examples please.

signature0.jpg

Probably the other way around. Exclude the entry point for the FB from running in the CB context.

Actually it depends very much if we talk about Fusebox 3 or Fusebox 5.

FB3:

  • just load FB3 in index_fbx.cfm entry point, excluded from CB

FB5:

  • I don’t think FB5 can be loaded on demand, so Application.cfc should extend fusebox5.Application and CB should be loaded on demand.
  • for index.cfm do: <cfset application.cbBootstrap.onRequestStart(arguments.targetPage)>
  • for index_fbx.cfm do: <cfset super.onRequestStart(argumentCollection=arguments)>

I did not tried this yet, I’m only contemplating the idea yet.

Am I on the right track Luis ?

Cristian

Yes