Updating enterprise applications with the console
Updating enterprise applications consists of adding a new file or module to an installed Java™ Platform, Enterprise Edition (Java EE) application, or replacing or removing an installed application, file or module.
Before you begin
Before you update the application files on a server, ensure that the files are assembled in deployable modules.
Next, refer to Ways to update enterprise application files and decide how to update your application files. You can update enterprise applications or modules using the administrative console, the wsadmin tool, or Java MBean programming. These ways provide similar updating capabilities.
Further, ensure that the updated files can be installed to your deployment targets.
About this task
The steps describe how to update deployed applications or modules using the administrative console.
Procedure
Results
After replacement of a full application, the product uninstalls the old application. After replacement of a module, file or partial application, the product removes the old installed module, file or partial application from the installed application.
What to do next
After the application file or module installs successfully, do the following:
- If a changed application or module is deployed on a cluster, roll out the
changes to all cluster members of the cluster on which the application or module is deployed. Click
Rollout Update on the Enterprise applications page to
propagate the changed configuration on all cluster members of the cluster on which the application
or module is deployed. Rollout Update sequentially updates the configuration
on the nodes that contain cluster members.Note: If a cluster has more than one member on the same node, all the members on the node are stopped at the same time.Best practice: At the end of the Installing messages displayed by the console during application or module installation, click Manage applications to go to the Enterprise applications page. Do not save changes to your configuration until after you roll out the changes.
- Save the changes to your configuration.
On multiple-server products, after you click Save the product deletes the old application files and copies new files when the configuration on the deployment manager synchronizes with the configuration on the node where the application is installed.
If the application is running when you update it, the application stops running before its files are copied to the destination directory of the node and restarts after the copy operation completes. Thus, the application is unavailable on the node during the time the node is synchronizing its configuration with the deployment manager.
- If needed, restart the application manually so the changes take effect.
If the application is updated while it is running, the product automatically stops the application or only its changed components, updates the application logic, and restarts the stopped application or its components.
If you update module metadata while an application is running, restarting the application might not be sufficient for the changes to take effect. For example, if you change descriptors in running Java EE 6 applications that use annotations, you must reinstall the application. If you change classes that introduce, remove, or alter class hierarchies within an application, and those changes impact annotated classes, you also must reinstall the application.
- If the application you are updating is deployed on a server that has its application class loader policy set to Single on the application server settings page, restart the server.