When developing my own Java class to use within ColdFusion 8 I stumble upon a problem that ColdFusion doesn't recognize that the *.java or *.class was changed, at least i don't see the change I made appear on the page. Is it some kind of caching issue?
is it a jvm argument which has to be given explicitly in order to turn it off?
noobsaibot
2009-09-01 09:42:34
Note, this is a good idea for development or test instances, but you probably don't want it for your production site.
Jay
2009-09-01 12:40:54
this is supposed to be in the development environment. however, how would i make my production environment notice the change in the class?
noobsaibot
2009-09-01 13:35:54
+3
A:
You might try using the JavaLoader from RIAForge. It lets to specify a JAR or .class file to load. It doesn't even need to be in the classpath so you can store the JAR in with your CFML if you like. I'm pretty sure its not impacted by caching.
ryber
2009-09-01 15:41:48
Leigh
2009-09-01 20:29:38
Yea, I guess the idea is that creating a new instance with class loader is what you would have to do. I dont think there would be a way to do with WIHOUT creating a new instance. Or overwriting the existing instance. Maybe if you hooked in some Groovy....
ryber
2009-09-02 21:23:41