To Redeploy a Deployed Application

Redeploying an application deploys a new version of the application while preserving the settings and other options with which the application was originally deployed.

Before You Begin

Ensure that the application that you are redeploying is already deployed.

  1. In the navigation tree, select the Applications node.

    The Applications page opens.

  2. In the Deployed Applications table, click Redeploy in the row for the application that you are redeploying.

    The application name can include an optional version identifier, which follows the name and is separated from the name by a colon (:). For more information about module and application versions, see the Module and Application Versions in Oracle GlassFish Server Application Deployment Guide.

    The Redeploy Applications or Modules page opens.

  3. Specify the location of the application to redeploy.

  4. Select the Availability Enabled checkbox to enable session persistence and SFSB checkpointing for the application.

    If the Enabled checkbox is selected, high-availability is enabled for web sessions and for stateful session bean (SFSB) checkpointing and potentially passivation. If set to false (default) all web session saving and SFSB checkpointing is disabled for the specified application. If set to true, the specified application is enabled for high-availability. Set this option to true only if high availability is configured and enabled at higher levels, such as the server and container levels.

    This option appears if clusters or standalone server instances aside from the default server instance (server) exist.

  5. Select the Precompile JSPs checkbox to precompile JavaServer Pages (JSP) files.

    If this option is disabled, JSP files are compiled at runtime when they are first accessed. This option is disabled by default.

  6. Select the Run Verifier checkbox to verify deployment descriptors before redeployment.

    If this option is selected and if verification fails, redeployment is not performed. The verifier examines the structure and content of the deployment descriptors. Verification of large applications is often time-consuming. This option is disabled by default.

    Verifier packages must be installed from the Update Tool or a warning is logged and this option is ignored.

  7. Select the Java Web Start checkbox to enable Java Web Start access for an application client module.

    This option is enabled or disabled by default according to its setting when originally deployed.

  8. Select the Keep State checkbox to retain web sessions, SFSB instances, and persistently created EJB timers between redeployments.

    This option is disabled by default. This option is supported only on the default server instance, named server. It is not supported and ignored for any other target.

    Some changes to an application between redeployments prevent this feature from working properly. For example, do not change the set of instance variables in the SFSB bean class.

    For web applications, this feature is applicable only if in the glassfish-web-app.xml file the persistence-type attribute of the session-manager element is file.

    For stateful session bean instances, the persistence type without high availability is set in the server (the SFSB Persistence Type option) and must be set to file, which is the default and recommended value.

    If any active web session, SFSB instance, or EJB timer fails to be preserved or restored, none of these will be available when the redeployment is complete. However, the redeployment continues and a warning is logged.

    To preserve active state data, GlassFish Server serializes the data and saves it in memory. To restore the data, the class loader of the newly redeployed application deserializes the data that was previously saved.

  9. Select the Preserve Application Scoped Resources checkbox to preserve any application-scoped resources and restore them during redeployment.

    This option is disabled by default.

  10. Click OK.

See Also
Copyright © 2005, 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices