Adding to the CLASSPATH Programmatically
| Programmatically add jars and classes to the classpath for ColdFusion MX Hosts 6 & 7 |
| Works just like dropping java jar files on the lib directory without exceptions |
| It works like a super classloader because it can load JDBC drivers. |
- Uses reflection to get inside any coldfusion page i.e cfm, cfc, component,gateways and RMI
- You can load new JDBC drivers for the datasource administrator
- You can use JWS and create whole new java classes at runtime
- You can save objects to disk and read them back from disk
- You make classes persist.
- You can use the loaded classes by any coldfusion page even other CFC's and even inside gateways.
- And you don't have to turn off coldfusion ever again
|
Component call:
Component: