Hi! Thanks for visiting my blog. If you've received any value from my content would you mind supporting my new startup by downloading our browser add-on? It's called PriceBlink and makes online shopping a breeze. You can watch it in action here and download it for Chrome, Firefox, IE, or Safari by going to PriceBlink.com. Thank you and I hope you enjoy!

Forcing Java CFX Reload in ColdFusion

Feb 28

I’ve been working on extending CF with a few Java utilities and came across a rather frustrating problem. Whenever I need to test a change in the CFX I have to restart the CF application server. Using ColdFusion MX 7, this process can take up to half a minute…..not the ideal development scenario.

So I discovered an attribute that I had read about in the past but have never put it to work. The attribute is called “reload” and I set the value to “always”. Therefore the call to the custom tag looks like:

<CFX_WEATHER zip=”75214″ reload=”always”>

This should only be done in a development environment as there is performance degradation in loading the class each time. Once you go to a production environment be sure to remove the attribute which will default to auto. This means the class will only be reloaded if it or a dependent class is changed.