![MACROMEDIA COLDFUSION 4.5-DEVELOPING WEB Скачать руководство пользователя страница 309](http://html1.mh-extra.com/html/macromedia/coldfusion-4-5-developing-web/coldfusion-4-5-developing-web_develop-manual_3286369309.webp)
Chapter 18: Building Custom CFAPI Tags
283
Automatic Class Reloading
You can determine how the server treats changed Java CFX class files by using the
RELOAD
(?) . The allowable values for the
RELOAD
attribute are as follows:.
The default value is
RELOAD=Auto
. This is appropriate for most applications. Use
RELOAD="Always"
during the development process when you want to ensure that you
always have the latest class files, even when only a dependent class has changed. Use
RELOAD="Never"
to increase performance by skipping the check for changed classes.
Note
The
RELOAD
attribute applies only to class files located in the
classes
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.
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
coldfusion.cfx.class.reload
setting of the
config/jvm.init
file as follows:
coldfusion.cfx.class.reload=no
For additional details on modifying JVM configuration file settings, see
“Java
Customization and Configuration” on page 289
.
Life cycle of Java CFXs
A new instance of the Java CFX object is created for each invocation of the
Java CFX
tag. This means that it is safe to store per-request instance data within the members of
Allowable Values of RELOAD Attribute
Value
Description
Auto
Automatically reload Java CFX and dependent classes within the
classes
directory whenever the CFX class file changes. Does not
reload if a dependent class file changes without the CFX class file
changing as well.
Always
Always reload Java CFX and dependent classes within the
classes
directory. Ensures a reload even if a dependent class changes, but the
CFX class file itself does not change.
Never
Never reload Java CFX classes. Load them once per server lifetime.
Содержание COLDFUSION 4.5-DEVELOPING WEB
Страница 1: ...Allaire Corporation Developing Web Applications with ColdFusion ColdFusion 4 5...
Страница 14: ...xiv Developing Web Applications with ColdFusion...
Страница 26: ...xxvi Developing Web Applications with ColdFusion...
Страница 34: ...8 Developing Web Applications with ColdFusion...
Страница 70: ...44 Developing Web Applications with ColdFusion...
Страница 84: ...58 Developing Web Applications with ColdFusion...
Страница 114: ...88 Developing Web Applications with ColdFusion...
Страница 148: ...122 Developing Web Applications with ColdFusion...
Страница 174: ...148 Developing Web Applications with ColdFusion...
Страница 208: ...182 Developing Web Applications with ColdFusion...
Страница 244: ...218 Developing Web Applications with ColdFusion...
Страница 274: ...248 Developing Web Applications with ColdFusion...
Страница 288: ...262 Developing Web Applications with ColdFusion...
Страница 300: ...274 Developing Web Applications with ColdFusion...
Страница 350: ...324 Developing Web Applications with ColdFusion...
Страница 362: ...336 Developing Web Applications with ColdFusion...