 |
 |
Running Uncompiled ColdFusion and Tango Code in JTransit
(Summary at end.)
You don't neccessarily have to compile all your ColdFusion and Tango source code into Java source and bytecode before running it in JTransit. Although this is recommended, because of the performance and stability gains and because less RAM is required for each concurrent "hit" with compiled code, it is not required.
The exception to this rule is Tango TAF and TCF source files, which must be compiled to run in JTransit. No ColdFusion files need to be compiled, and Tango TML files also do not need to be compiled.
To run your uncompiled source files in JTransit, just place them in their "typical" locations under the webroot, and JTransit will start using them immediately; no restart of the app server is required. The webroot in this case is the directory pointed to by the default-webroot attribute of the jtransit:config node in your main jtransit.xml configuration file. For example, if you have the following in your jtransit.xml file:
<jtransit:config default-webroot="/Library/Tomcat/webapps/jtransit">
then the webroot directory used by JTransit is the /Library/Tomcat/webapps/jtransit directory. You can place any number of files and folders under this directory, but remember that they will override compiled files of the same name, so if you later compile a source file or template file, remember to delete it from under the webroot or JTransit will continue to use the uncompiled version of the file.
SUMMARY:
- To run uncompiled source files, just place them under the webroot (or a subdirectory of the webroot).
- The webroot is set by the default-webroot attribute of the jtransit:config node in the jtransit.xml file.
- To run the compiled versions again, remember to delete the uncompiled source files from under the webroot.
|
 |
 |