en.help.task-setadvanceappconfig.html Maven / Gradle / Ivy
To Set the Advanced Applications Configuration
Use the Applications Configuration page to set properties that help ensure that changes
to deployed applications are detected and that the modified classes are reloaded.
- In the navigation tree, select the GlassFish Server node.
The General Information page opens.
- On the General Information page, click the Advanced tab.
The Applications Configuration page opens.
- Select the Reload Enabled checkbox to enable dynamic reloading of applications.
When dynamic reloading is enabled, you do not have to redeploy an application
or module when you change its code or deployment descriptors. All you have
to do is copy the changed JavaServer PagesTM (JSPTM) or class files into
the deployment directory for the application or module. The server periodically checks for changes
in the deployment directory and redeploys the application, automatically and dynamically, with the
changes. This is useful in a development environment, because it allows code changes
to be tested quickly. In a production environment, however, dynamic reloading might degrade
performance. In addition, whenever a reload is done, the sessions at that transit
time become invalid. The client must restart the session.
This option is enabled by default.
- In the Reload Poll Interval field, type the length, in seconds, of the
interval at which applications and modules are to be checked for code changes
and dynamically reloaded.
The default value is 2.
- In the Admin Session Timeout field, type the number of minutes of inactivity
after which the Administration Console session is to time out.
The default value is 60.
- Select the Auto Deploy Enabled checkbox to enable automatic deployment of applications.
If you copy an application or module file (JAR, WAR, RAR, or EAR)
into a special directory and then enable automatic deployment, the application or module
is automatically deployed by the GlassFish Server. This option is enabled by default.
- In the Auto Deploy Poll Interval field, type the length, in seconds, of
the interval at which applications and modules are to be checked for
code changes and dynamically reloaded.
The default value is 2. Changing the poll interval does not affect the
time taken for deploying an application or module.
- In the Auto Deploy Retry Timeout field, type the number of seconds that
a partially copied file can remain unchanged in size before an error occurs.
The default value is 4.
- In the Auto Deploy Directory field, type the full path of the directory
to monitor for automatic deployment of applications.
The default value is domain-dir/autodeploy.
- From the XML Validation drop-down list, select the type of XML validation to
be performed on standard and GlassFish Server deployment descriptors.
The type may be any of the following:
- full
If XML validation fails, deployment fails. This value is the default.
- parsing
XML validation errors are reported, but deployment occurs.
- none
No XML validation is performed.
- Select the Verifier Enabled checkbox to verify your deployment descriptor files.
The verifier examines the structure and content of the file before autodeployment. If
verification fails, deployment is not performed. Verification of large applications is often time-consuming.
This option is disabled by default.
- Select the Precompile Enabled checkbox to precompile any JSP files.
If this option is disabled, JSP files are compiled at runtime when they
are first accessed. This option is disabled by default.
- (Optional) In the Additional Properties section, specify additional properties.
The GlassFish Server does not define any additional properties for applications.
- To add a property, click the Add Property button. In the blank row
that appears, type the property name in the Name field, and type
the property value in the Value field.
- To modify a property, edit that property's Value field.
- To delete a property, select the checkbox to the left of the
Name field of the property that you are deleting, then click the Delete
Properties button.
- Click Save.
Tip - To return to the default settings, click the Load Defaults button, then click
Save.
- Restart the server.
See Also