Troubleshoot and support > Deployment
Troubleshoot: Backup and restore the Java EE assets
While deploying the Java EE assets, you may encounter problems and require a roll back of the changes.
Implement a rollback strategy, in the case of an unsuccessful deployment. This strategy consists of the following tasks:
Backup
To back up the WC_ instance.ear, you export the WebSphere Commerce. Complete the following steps:
- Start the WebSphere Application Server administration server.
- Launch the WebSphere administrative console.
- In the WebSphere administrative console, expand Applications > Enterprise Applications.
- From the Enterprise Applications list, select the check box next to the Java EE application for the instance. This will be WC_ instance (for example, WC_demo). Click Export.
The system makes a master copy of the application; that is, a collapsed version of the WC_ instance.ear. The system merges it with the latest metadata from the deployment manager (if applicable) and exports it into an archived format.
- Click WC_instance. Save the file to the computer.
Restore
To restore the backup of the WC_ instance.ear, you also use the export WebSphere Application Server:
- Start the WebSphere Application Server administration server.
- Launch the WebSphere administrative console.
- In the WebSphere administrative console, expand Applications > Enterprise Applications.
- From the Enterprise Applications list, select the check box next to the Java EE application for the instance. This will be WC_ instance (for example, WC_demo). Click Update.
- On the Preparing for Application Installation page:
- Select Full applications.
- Specify the directory to the back up copy of the WC_instance.
- Select Generate Default Bindings and click Next.
- Click Continue.
- Click Summary.
- Click Finish.
- The Updating Application page displays with a confirmation message. Click OK.
- WebSphere Application Server saves the work. On the Updating page, click Save to Master Configuration to save the changes.
Related tasks