If you are developing CFXs using the Java CFXAPI this one will get on your nerves (it’s bugging me big time, and based on Christian Cantrell’s recent messages to me it is bugging him endlessly too). C/C++ CFX tags have a “Keep DLL Loaded” checkbox, but Java CFXs do not. Java CFXs are Java classes located in the Java classpath (specified in the Java settings page in the ColdFusion Administrator), and ColdFusion loads classes located on the Java classpath once per server lifetime. What does this mean? During active development you’ll likely find yourself recompiling your Java source repeatedly as you make changes, and wanting to test those changes via a ColdFusion tag invocation. And you are going to have to restart ColdFusion each and every time you generate a new .class file or else ColdFusion will not “see” your changes. It’s painful, but that’s the way it is for now (I keep the Windows Services Control Panel open during development so as to be able to hit the restart button as needed – ouch!).
Leave a Reply