Hi, I am attempting to utilize Rolando Lopez's excellent EnvironmentConfig (http://environmentconfig.riaforge.org/) within a MG application. I have this up and running outside of MG, but I am unsure as to if, where and how I can invoke EC within MG/ColdSpring at application startup time.
I'm aware that a ColdSpring bean definition file can be created by setting the EC property bCreateColdSpringFile=true, and this can be included in the main ColdSpring.xml file. This is precisely the mechanism I want to use. My question however, is if, and if so, how can I invoke EC itself from within MG so the dynamically generated CFC and the ColdSpring file stub get recreated each time the application is reinitialized. In the example provided in the EC download, EC is invoked in Application.cfc thus: oEnvironmentService = createObject( 'component', 'environmentConfig.models.EnvironmentService' ).init(); stResults = stl.oEnvironmentService.configureEnvironment( '/config/ environment.xml.cfm' ); I'm thinking there must be a much more elegant solution to this utilizing ColdSpring, and I would like to invoke and execute this within the MG application initialization process, so that the newly- generated stub gets included. Does anyone have any pointers that could help me in the right direction? I'm hoping I'm not the first to come across this issue! I'm very new to MG/ColdSpring, and any assistance would be very gratefully received by this framework newbie! Many thanks, Mike. -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
