Chapter 18: Building Custom CFAPI Tags
Automatic Class Reloading
You can determine how the server treats changed Java CFX class files by using the
(?) . The allowable values for the
RELOAD
Allowable Values of RELOAD Attribute
Value
Auto
Always
Never
The default value is
RELOAD="Always"
always have the latest class files, even when only a dependent class has changed. Use
RELOAD="Never"
Note
Disabling Automatic Reloading for Deployment
Automatic class reloading is an essential feature for iterative development and testing.
However, because it must continually check to see whether Java CFX class files have
changed, performance may decrease slightly. Therefore, when you move from
development into deployment, Allaire ecommends that you globally disable automatic
class reloading. You can do this by modifying the
setting of the
coldfusion.cfx.class.reload=no
For additional details on modifying JVM configuration file settings, see
Customization and Configuration" on page
Life cycle of Java CFXs
A new instance of the Java CFX object is created for each invocation of the
tag. This means that it is safe to store per-request instance data within the members of
Description
Automatically reload Java CFX and dependent classes within the
directory whenever the CFX class file changes. Does not
classes
reload if a dependent class file changes without the CFX class file
changing as well.
Always reload Java CFX and dependent classes within the
directory. Ensures a reload even if a dependent class changes, but the
CFX class file itself does not change.
Never reload Java CFX classes. Load them once per server lifetime.
RELOAD=Auto
during the development process when you want to ensure that you
to increase performance by skipping the check for changed classes.
The
attribute applies only to class files located in the
RELOAD
directory. Classes located on the Java class path are loaded once per
server lifetime and can only be reloaded by stopping and restarting
ColdFusion Server.
file as follows:
config/jvm.init
attribute are as follows:.
RELOAD
. This is appropriate for most applications. Use
coldfusion.cfx.class.reload
289.
283
classes
classes
"Java
Java CFX
Need help?
Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?