New Feature of Coldfusion 10 Allows You to Dynamically Load Java Libraries
In the old days of ColdFusion if you wanted to access a 3rd party Java library (JAR or class files) you had a couple options: 1. Add the location of the library to the ColdFusion classpath -or- 22. Use something like JavaLoader (http://javaloader.riaforge.org/) to dynamically load Java libraries into your ColdFusion application. ColdFusion 10, however, makes it even easier to load Java libraries into your ColdFusion application without having to restart ColdFusion. All that’s required is your application define the ‘THIS.javaSettings’ attribute within the site’s Application.cfc like below: [code] <cfset THIS.javaSettings = {LoadPaths = [“/javafiles/”],reloadOnChange=true,watchInterval=30}/> [/code] The above code will...
Continue Reading Article →