Hi everybody,

I just joined this list and hope that this question was not asked too
many times before:

Is it possible to dynamically intialise Reactor (with data from another
application) whitout changing the framework?
This workaround would work, but setConfigXML() must be changed to
public:

<!--- read data (#variable#)
        ...
 --->

<cfprocessingdirective suppresswhitespace="Yes"> <cfxml
variable="ReactorXML"> <reactor>
        <config>
                <project value="myproject" />
                <dsn value="<cfoutput>#variable#</cfoutput>" />
                <type value="<cfoutput>#variable#</cfoutput>" />
                <mapping value="<cfoutput>#variable#</cfoutput>" />
                <mode value="<cfoutput>#variable#</cfoutput>" />
        </config>
</reactor>
</cfxml>
</cfprocessingdirective>

<cfscript>
ReactorConfig = CreateObject("Component","reactor.config.config");
ReactorConfig.setProject("myproject");
ReactorConfig.setDsn(variable);
ReactorConfig.setType(variable);
ReactorConfig.setMapping(variable);
ReactorConfig.setMode(variable);
ReactorConfig.setConfigXml(ReactorXML);// changed from private to public
!

Reactor =
CreateObject("Component","reactor.reactorFactory").init(ReactorConfig);

--

Harry Klein | Konzeption und Entwicklung
CONTENS Software GmbH
Oettingenstr. 25 | 80538 München
Fon: +49 (0)89 5199 69-0 | Fax: +49 (0)89 5199 69-78
mailto:[EMAIL PROTECTED] | http://www.contens.de


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to