WAS v8.5 > Administer applications and their environment > Deploy enterprise applicationsUpdate enterprise application files
We can update Java EE application files deployed on a server.
Update your Java EE application or modules and reassemble them using an assembly tool. Typical tasks include adding or editing assembly properties, adding or importing modules into an application, and adding enterprise beans, web components, and files.
Also, determine whether the updated files can be installed to your deployment targets. v8.x supports Java EE 6 enterprise applications and modules.
If we are deploying Java EE 6 modules, ensure the deployment target supports v8.0 or later. We can deploy Java EE 6 modules only to v8.x and later servers. We cannot deploy Java EE 6 modules to v7.x or 6.x deployment targets.
The dmgr console Server collection pages show the versions for deployment targets. Updating consists of adding a new file or module to an installed application, or replacing or removing an installed application, file or module. After replacement of a full application, the old application is uninstalled. After replacement of a module, file or partial application, the old installed module, file or partial application is removed from the installed application.
SCA applications can contain Java EE modules as well as SCA composites. We can use the procedure described in this topic to update Java EE modules in SCA applications. However, we cannot use this procedure to update SCA composites or other SCA-specific files.
- Determine which method to use to update the application files. WAS v8.5 provides several ways to update modules.
- Update the application files using
- Administrative console
- Drag and drop to a monitored directory
- wsadmin scripts
- Java application programming interfaces
- WebSphere rapid deployment of Java EE applications
In some situations, we can update applications or modules without restarting the application server using hot deployment. Do not use hot deployment unless you are an experienced user and are updating applications in a development or test environment.
- If needed, restart the application manually so the changes take effect. Start the deployed application files using
- Administrative console
- wsadmin startApplication
- Java programs that use ApplicationManager or AppManagement MBeans
When you update an application 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 we 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 we change classes that introduce, remove, oralter class hierarchies within an application, and those changes impact annotated classes, you also must reinstall the application.
Save the changes to your administrative configuration.
- You must use either the dmgr console or wsadmin scripting to synchronization a node. Of these two options, using the dmgr console is the best way to perform this operation. The Nodes panel in the dmgr console includes the Synchronize operation.
If we need to use wsadmin scripting to synchronize a node, use the NodeSync mbean's sync() command.
- Do not restart the node agent as part of the synchronize node process. Administration operations, such as node synchronization for application deployment, or updates that take place while the node agent is starting, that are initiated through the node agent, and affect the application servers, fail until the node agent has a chance to discover the application servers.
Next, test the application. For example, point a web browser at the URL for a deployed application (typically http://hostname:9060/web_module_name, where hostname is your valid web server and 9060 is the default port number) and examine the performance of the application. If the application does not perform as desired, edit the application configuration, then save and test it again.
Subtopics
- Ways to update enterprise application files
We can update Java EE application files deployed on a server in several ways.- Update enterprise applications with the console
Updating enterprise applications consists of adding a new file or module to an installed Java EE application, or replacing or removing an installed application, file or module.- Prepare for application update settings
Use this page to update enterprise applications, modules or files already installed on a server.- Hot deployment and dynamic reloading
We can make various changes to applications and their modules without having to stop the server and start it again. Making these types of changes is known as hot deployment and dynamic reloading.- Ways to update enterprise application files
We can update Java EE application files deployed on a server in several ways.- Update enterprise applications with the console
Updating enterprise applications consists of adding a new file or module to an installed Java EE application, or replacing or removing an installed application, file or module.- Prepare for application update settings
Use this page to update enterprise applications, modules or files already installed on a server.- Hot deployment and dynamic reloading
We can make various changes to applications and their modules without having to stop the server and start it again. Making these types of changes is known as hot deployment and dynamic reloading.
Related concepts:
Development and assembly tools
Installable enterprise module versions
Related
Start or stop enterprise applications
Start applications using wsadmin.sh
Install enterprise application files by adding them to a monitored directory
Update installed applications using wsadmin.sh
Manage applications through programming
Troubleshooting deployment
Configure enterprise application files
Deploy enterprise applications
Reference:
Server page
Related information:
WebSphere rapid deployment of Java EE applications