Title:
Bug 75211:(Watson Migration Closure)ColdFusion should really be providing dynamic classloading to applications
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Jared Rypka-Hauer / Jared C Rypka-Hauer (Jared Rypka-Hauer)
Created: 01/27/2009
Components: Installation/Config, JEE Deployment
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 10
Problem:
ColdFusion should really be providing dynamic classloading to applications. This could be accomplished by a couple simple additions:
1) Add an optional third argument to createObject() for java classes:
createObject("java","com.foo.bar.Fiddle","c:\path\to\file.jar")
This would have the side effect of loading the jar file into the current context classloader so that all classes are available from that point on.
2) For the java/ejb variant of cfobject syntax, allow the following addition for the action attribute:
<cfobject action="load" classpath="c:\path\to\files\and\folders" />
This loads all specified classes into the context classloader.
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037384
External Customer Info:
External Company:
External Customer Name: Jared C Rypka-Hauer
External Customer Email: 08C411A143BC38A7992016B6
External Test Config: 01/27/2009
Attachments:
Comments: