Daemonite: Dynamic class loading in CFMX Archive

Daemonite: Dynamic class loading in CFMX Archive


Sunday, September 12, 2004
Dynamic class loading in CFMX

Many developers seem keen to add things to the Java class path for their ColdFusion installations. Generally I rely on JRUNs dynamic class loading folders to store third-party Java libraries rather than modify the class path directly.

If you place your JAR files in WEB-INF/lib, or your CLASS files in WEB-INF/classes, CFMX will reload them for you. Similarly, if you run the J2EE for CFMX configuration there's a dynamically loading {install root}/servers/lib folder that makes JARs available to all server instances. For example, I stick my Postgresql JDBC driver JAR in there so all server instances have access.

Known Issues

  • There were some issues with Sun's jdk1.3.1_06, jdk1.3.1_07, jdk1.3.1_08 JDKs that broke the JRUN class loader, but who's using these anymore?
  • I note that Dynamic class loading and compiling doesn't work with double byte characters is a known JRUN issue. I wonder if they mean JRUN won't dynamically load a class with a filename containing double byte characters or if the file contains double byte characters? Certainly I've not run into the problem myself.

Posted by modius at 05:43 PM | Permalink
Trackback: http://blog.daemon.com.au/cgi-bin/dmblog/mt-tb.cgi/248

Comments

if i understand correctly, its the class/file names.

Posted by: paulH on September 12, 2004 06:01 PM