Ticket #370 (closed enhancement: fixed)

Opened 2 months ago

Last modified 2 months ago

ColdBoxProxy - Ability to declare and load ANY coldbox application

Reported by: lmajano Assigned to: lmajano
Priority: high Milestone: 2.6.0
Component: Coldbox Proxy Version:
Severity: normal Keywords:
Cc:

Description (Last modified by lmajano)

This is a feature I dreamed about today. Currently the coldbox proxy needs to live inside of coldbox application, so that the Application.cfc can bootstrap the correct application. This is great and dandy, no work to do in the proxy.

However, what if I want to create an event gateway or anything else BUT place the proxy on another location? Well, you can't. Therefore, create some other utility methods where you can actually call the bootstrapper. Two requirements will be needed here:

  1. Application Mapping (Which Coldbox app to connect to)
  2. Coldbox.xml.cfm Location (Which configuration file to use for that Application)

That's it. As you can see, we are already doing this on the baseTest to achieve unit testing capabilities within ColdBox. This will be an extension into the proxy and the user, will only need to do the following:

  1. Set the application mapping property
  2. Set the coldbox.xml.cfm property
  3. Call a method, loadColdBox();
<cfcomponent name="MyProxy" extends="coldbox.system.extras.ColdBoxProxy">
  
  <cfscript>
    //Load my App
    loadColdBox(appMapping='',configLocation='',reloadApp='false');
  </cfscript>

  ... All Methods Here ...

</cfcomponent>

Change History

03/30/08 17:36:54 changed by lmajano

  • description changed.

03/30/08 17:37:03 changed by lmajano

  • status changed from new to closed.
  • resolution set to fixed.

Copyright 2006 ColdBox Framework by Luis Majano