Jamie Jackson wrote: > I've got two replicated databases that I'm doing app-side failover for > in my CFMX app. The gist of my problem is: I've got some catch blocks > which send failure notices to the DB admins. However, when I'm testing > (stopping the DBs), for a single page request in which there is a > caught error, there is some strange loop developing, and sending > endless emails until I kill the cf service. > > I've included the code that I think is pertinent, and have snipped out > the rest (...). > > BTW, the line: > <cfthrow message="This error is thrown when both DBs fail."> > Is the one currently that's generating the repeated emails (via > <cferror type="exception">)
Isn't Application.cfm ran again for the template specified with cferror? So if your check is in Application.cfm, you need to prevent it from running again by checking if the BaseTemplatePath() is the template specified in cferror. Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

