Troubleshoot: Backup and restore your J2EE assets
While deploying your J2EE assets, you may encounter problems and require a roll back of your changes. Implement a rollback strategy, in the case of an unsuccessful deployment. This strategy consists of the following tasks:
- Backup your WC_ instance.ear.
- Restore your backup copy of WC_ instance.ear.
Backup
To back up your WC_ instance.ear, you export the WebSphere Commerce. Complete the following steps:
- Start the WAS administration server.
- Launch the WebSphere console.
- In the WebSphere console, expand Applications > Enterprise Applications.
- From the Enterprise Applications list, select the check box next to the J2EE application for your 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 your WC_ instance.ear. The system merges it with the latest metadata from your deployment manager (if applicable) and exports it into an archived format.
- Click WC_instance.ear. Save the file to your computer.
Restore
To restore the backup of your WC_ instance.ear, you also use the export WAS:
- Start the WAS administration server.
- Launch the WebSphere console.
- In the WebSphere console, expand Applications > Enterprise Applications.
- From the Enterprise Applications list, select the check box next to the J2EE application for your 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 your back up copy of your WC_instance.ear.
- Select Generate Default Bindings and click Next.
- Click Continue.
- Click Summary.
- Click Finish.
- The Updating Application page displays with a confirmation message. Click OK.
- WAS saves your work. On the Updating page, click Save to Master Configuration to save your changes.
Related tasks
Deploy custom J2EE assets