Troubleshooting: Backing up and restoring your Java EE assets
While you deploy your Java EE assets, you can encounter problems and require a rollback of your changes.
Implement a rollback strategy, in the case of an unsuccessful
deployment. This strategy consists of the following tasks:
- Back up your WC_ instance_name.ear.
- Restore your backup copy of WC_ instance_name.ear.
Backing up
To back up your WC_instance_name.ear, you export the WebSphere Commerce. Complete the following steps:
- Starting and stopping quick reference.
- Open the WebSphere Integrated Solutions Console.
- In the administrative console, expand .
- From the Enterprise Applications list, select the check box next
to the Java EE application for your instance. This will be WC_ instance_name (for
example, WC_demo). Click Export.
The system makes a master copy of the application; that is, a collapsed version of your WC_ instance_name.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_name.ear. Save the file to your computer.
Note: In addition to backing up your WC_ instance_name.ear,
back up the Back up the WebSphere Application Server administrative configuration files using
the backupConfig command.
Restoring
To restore the backup of your WC_ instance_name.ear, you also use the export WebSphere Application Server:
- Starting and stopping quick reference.
- Open the WebSphere Integrated Solutions Console.
- In the administrative console, expand .
- From the Enterprise Applications list, select the check box next to the Java EE application for your instance. This will be WC_ instance_name (for example, WC_demo). Click Update.
- On the Preparing for Application Installation page:
- Select Full applications.
- Specify the directory to your backup copy of your WC_instance_name.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.
- WebSphere Application Server saves your work. On the Updating page, click Save to Master Configuration to save your changes.
Note: In addition to restoring the backup of your WC_instance_name.ear,
restore the Back up the WebSphere Application Server administrative configuration files using
the restoreConfig command.