Just remember that mode "1" reloads the app on each request.  Things 
like redirect persist will break as noted in the doc.  The other option 
is set it to "0" and touch your mach-ii.xml file.  A new last date 
changed timestamp on that file will cause the framework to reload.  The 
other option is the dashboard which allows you to reload your 
application and if you are using the 1.8 beta / nightly -- you can 
reload an individual listener instead of your whole application through 
the dashboard.

.pjf

Jimmy Chen said the following on 09/25/2009 10:55 AM:
> Awsome!  Thank you guys, problem solved after setting  
> MACHII_CONFIG_MODE=1
>
> Will also install Mach-II dashboard.
>
> Jimmy
>
> On Sep 25, 2009, at 11:21 PM, Peter J. Farrell wrote:
>
>   
>> Another option is to use the Mach-II dashboard:
>>
>> http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/wiki/Dashboard
>>
>> jlcox said the following on 09/25/2009 10:09 AM:
>>     
>>> One common way to deal with this is to temporary switch config modes
>>> based upon a URL param. In Application.cfc:
>>>
>>> <cffunction name="onRequestStart" returntype="void" output="true"
>>>             hint="Run at the start of a page request.">
>>> ...
>>>   <cfif StructKeyExists(url, "reloadApp")>
>>>     <cfsetting requesttimeout="120" />
>>>     <cfset MACHII_CONFIG_MODE = 1 />
>>>   </cfif>
>>> ...
>>> </cffunction>
>>>
>>> You can reload your application on demand that way
>>>
>>> http://mydoman.com/index.cfm?reloadApp
>>>       
>>     
>
>
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
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/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---

Reply via email to