Hey Matt,
The original question/statement was actually mine and was essentially,
"I don't understand why my Mach-II app is not picking up changes to
Mach-II config variables in App.cfc unless I restart the server"
Where this all came from is I am putting together a new app, and
before deployment I went to change mach-ii.xml to mach-ii.xml.cfm. In
order for this to work, however, I needed to override the default
MACHII_CONFIG_PATH variable in App.cfc. However, I discovered that
the only way I could get Mach-II to recognize my updated config path
variable was to restart the CF server. So actually there were two
questions, one was "Has anyone seen this behavior or does anyone
understand why this may be happening?", and the second one was (for
the sake of further troubleshooting), "Does anyone know if there is a
way to programmatically get the Mach-II app settings for the current
app?" I checked for this in the framework API docs but didn't see
anything. I was thinking this would help me if there was a way to
call getAppManager().getAppSettings() or something and get a struct
just to confirm visually that indeed none of the app settings
variables were updating without a restart. For what it's worth, I was
able to change other variable values such as anything in the
"variables" scope in App.cfc and see those updated, so I at least know
the component was being updated.
Thanks for any insight,
Brian
On Sep 2, 2:55 pm, Matthew Woodward <
m...@mattwoodward.com> wrote:
> On Thu, Sep 2, 2010 at 11:57 AM, Daniel <
daniel.knowl...@gmail.com> wrote:
> > Brian, I have been needing to restart my local CF server for nearly
> > ALL changes I make to CF components.
>
> That's strange--I've never had to go to these lengths.
>
> > I'm
> > wondering if the solution is to use a different web server such as IIS
> > or Tomcat?
>
> Just because I can't let this go without commenting ... ;-) IIS vs. Tomcat
> is apples and oranges. IIS is a web server, and Tomcat is a Java servlet
> container. The equivalent to Tomcat on the CF side of things would be JRun,
> which is the JEE server that ships with CF. (As an aside, JRun is ancient,
> inefficient, and has been abandoned by Adobe, so here's hoping CF 10 ships
> with a decent servlet container like Tomcat.)
>
> I probably breezed over the initial email too quickly, but what's the setup
> again? If this is all related to CF Builder have you tried NOT using CF
> Builder to see if the behavior is the same?
> --
> Matthew Woodward
> m...@mattwoodward.comhttp://
blog.mattwoodward.com