Ticket #27 (closed defect: worksforme)
Unity Will Not Load At All If Reactor Is Not Installed
| Reported by: | anonymous | Owned by: | somebody |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0 Beta 1 |
| Version: | Severity: | major | |
| Keywords: | Cc: | dcarabetta@…, joe.rinehart@… |
Description
Pretty self-explanatory, but I don't have Reactor installed anywhere on my system and the workaround in FrameworkLoader?.cfc will not work (it uses try/catch to check). Since ColdFusion? first checks to make sure that all files exists, it doesn't get to a run-time state where the try/catch would cleanly catch it.
My suggestion, though I don't know how deep this would run, would be to add a config setting in the ModelGlue?.xml file called useORM that has a default value of true but can be set to false. The code for the FrameworkLoader?.cfc would then looks something like:
<cfif mg.getConfigSetting("useORM")>
<cfset ormBeans = mg.getConfigSetting("ORMBeans") />
<cfelse>
<cfset ormBeans = mg.getConfigSetting("failoverORMBeans") />
</cfif>
Again, just a suggestion after a cursory look. The current code setup currently makes Unity unusable in the absence of Reactor. I know Reactor's popular, but there are likely many people who won't have it installed.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)